home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Education / Modern Media / olisDemo / Shared.DIR < prev   
Macromedia Director  |  1995-04-13  |  329.9 KB  |  [MV93/MD93]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Macromedia Director (archive/macromediaDirector).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Macromedia Director (archive/macromediaDirector) magic Supported
1% dexvert PC-Talk III data (other/pcTalkIIIData) ext Unsupported
1% dexvert RIFF (Generic Fallback) (archive/riff) fallback Supported
100% file RIFF (big-endian) data default
99% file data default
44% TrID Macromedia Director project (Big-endian) default
22% TrID Adobe Director Protected Cast (MV93) default
22% TrID Generic RIFX container (big-endian) default
11% TrID Philips Respironics M-Series data format default (weak)


id metadata
keyvalue
macFileType[MV93]
macFileCreator[MD93]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 49 46 58 00 05 27 64 | 4d 56 39 33 69 6d 61 70 |RIFX..'d|MV93imap|
|00000010| 00 00 00 18 00 00 00 01 | 00 05 0f a0 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 4b 45 59 2a |........|....KEY*|
|00000030| 00 00 04 bc 00 0c 00 0c | 00 00 00 64 00 00 00 0f |........|...d....|
|00000040| 00 00 00 08 00 00 00 0a | 42 49 54 44 00 00 00 0c |........|BITD....|
|00000050| 00 00 00 19 42 49 54 44 | 00 00 00 1b 00 00 00 1a |....BITD|........|
|00000060| 73 6e 64 20 00 00 00 25 | 00 00 00 1e 42 49 54 44 |snd ...%|....BITD|
|00000070| 00 00 00 8e 00 00 00 24 | 42 49 54 44 00 00 00 5e |.......$|BITD...^|
|00000080| 00 00 00 24 54 48 55 4d | 00 00 00 83 00 00 00 2a |...$THUM|.......*|
|00000090| 42 49 54 44 00 00 00 5c | 00 00 00 59 42 49 54 44 |BITD...\|...YBITD|
|000000a0| 00 00 00 63 00 00 00 64 | 73 6e 64 20 00 00 00 65 |...c...d|snd ...e|
|000000b0| 00 00 00 6d 42 49 54 44 | 00 00 00 05 00 00 04 00 |...mBITD|........|
|000000c0| 43 41 53 2a 00 00 00 06 | 00 00 04 00 4c 63 74 78 |CAS*....|....Lctx|
|000000d0| 00 00 00 04 00 00 04 00 | 56 57 43 46 00 00 00 0b |........|VWCF....|
|000000e0| 00 00 04 00 56 57 46 49 | 00 00 00 0f 00 00 04 00 |....VWFI|........|
|000000f0| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000100| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000110| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000120| 56 57 46 4d 00 00 00 5a | 00 00 04 00 56 57 74 6b |VWFM...Z|....VWtk|
|00000130| 00 00 00 5a 00 00 04 00 | 56 57 74 6b 00 00 00 5a |...Z....|VWtk...Z|
|00000140| 00 00 04 00 56 57 74 6b | 00 00 00 5a 00 00 04 00 |....VWtk|...Z....|
|00000150| 56 57 74 6b 00 00 00 5a | 00 00 04 00 56 57 74 6b |VWtk...Z|....VWtk|
|00000160| 00 00 00 5a 00 00 04 00 | 56 57 74 6b 00 00 00 0f |...Z....|VWtk....|
|00000170| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000180| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000190| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|000001a0| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|000001b0| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|000001c0| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|000001d0| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|000001e0| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|000001f0| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000200| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000210| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000220| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000230| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000240| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000250| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000260| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000270| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000280| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000290| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|000002a0| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|000002b0| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|000002c0| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|000002d0| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|000002e0| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|000002f0| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000300| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000310| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 0f |........|VWFM....|
|00000320| 00 00 04 00 56 57 46 4d | 00 00 00 0f 00 00 04 00 |....VWFM|........|
|00000330| 56 57 46 4d 00 00 00 0f | 00 00 04 00 56 57 46 4d |VWFM....|....VWFM|
|00000340| 00 00 00 0f 00 00 04 00 | 56 57 46 4d 00 00 00 d8 |........|VWFM....|
|00000350| 00 00 04 00 56 57 74 6b | 00 00 00 d8 00 00 04 00 |....VWtk|........|
|00000360| 56 57 74 6b 00 00 00 d8 | 00 00 04 00 56 57 74 6b |VWtk....|....VWtk|
|00000370| 00 00 00 d8 00 00 04 00 | 56 57 74 6b 00 00 00 d8 |........|VWtk....|
|00000380| 00 00 04 00 56 57 74 6b | 00 00 00 d8 00 00 04 00 |....VWtk|........|
|00000390| 56 57 74 6b 00 08 05 04 | 00 00 00 00 00 00 00 30 |VWtk....|.......0|
|000003a0| 00 a8 32 50 00 01 00 a8 | c1 88 00 a8 c1 7c 00 a8 |..2P....|.....|..|
|000003b0| c1 78 ff ff 00 a8 d5 8c | aa 55 aa 55 aa 55 aa 55 |.x......|.U.U.U.U|
|000003c0| 00 00 00 00 61 63 3a 48 | 00 00 00 00 00 00 01 d0 |....ac:H|........|
|000003d0| 00 a8 32 50 01 c4 00 00 | 00 00 00 14 00 19 00 11 |..2P....|........|
|000003e0| 02 ff 0c 00 ff fe 00 00 | 00 48 00 00 00 48 00 00 |........|.H...H..|
|000003f0| 00 00 00 00 00 14 00 19 | 00 00 00 00 00 01 00 0a |........|........|
|00000400| 00 00 00 00 00 14 00 19 | 00 98 80 1a 00 00 00 00 |........|........|
|00000410| 00 14 00 19 00 00 00 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|00000420| 00 48 00 00 00 00 00 08 | 00 01 00 08 00 00 00 00 |.H......|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 4d 7e f5 00 00 00 06 |........|.M~.....|
|00000440| 00 00 ff ff ff ff ff ff | 00 01 99 99 cc cc ff ff |........|........|
|00000450| 00 02 ee ee ee ee ee ee | 00 03 dd dd dd dd dd dd |........|........|
|00000460| 00 04 88 88 88 88 88 88 | 00 05 55 55 55 55 55 55 |........|..UUUUUU|
|00000470| 00 06 00 00 00 00 00 00 | 00 00 00 00 00 14 00 19 |........|........|
|00000480| 00 00 00 00 00 14 00 19 | 00 00 05 e9 02 01 05 00 |........|........|
|00000490| 09 01 02 02 ec 01 02 05 | 05 00 0e 01 02 02 f8 01 |........|........|
|000004a0| 01 02 02 f7 01 02 05 05 | 00 10 01 02 02 f9 01 03 |........|........|
|000004b0| 02 06 06 02 f8 01 02 05 | 05 00 0d 01 02 02 f9 01 |........|........|
|000004c0| fd 06 f8 01 02 05 05 00 | 0f 01 02 02 f9 01 fd 06 |........|........|
|000004d0| 00 04 f9 01 02 05 05 00 | 10 01 02 02 f8 01 03 06 |........|........|
|000004e0| 06 04 04 f9 01 02 05 05 | 00 0d 01 02 02 f8 01 fe |........|........|
|000004f0| 56 57 43 46 00 00 00 50 | 00 50 04 5d 00 00 00 00 |VWCF...P|.P.]....|
|00000500| 01 e0 02 80 07 d1 07 e0 | 0c 00 00 03 00 01 00 00 |........|........|
|00000510| 00 45 00 ff 00 08 01 01 | 00 04 8e 80 04 5d 00 10 |.E......|.....]..|
|00000520| 00 00 00 00 00 36 15 17 | 00 27 80 00 00 bf 00 0f |.....6..|.'......|
|00000530| 00 01 4d 28 00 00 00 3c | b9 48 c3 26 00 0d 00 00 |..M(...<|.H.&....|
|00000540| 00 00 00 00 00 00 00 00 | 43 41 53 2a 00 00 00 40 |........|CAS*...@|
|00000550| 00 00 00 13 00 00 00 19 | 00 00 00 59 00 00 00 00 |........|...Y....|
|00000560| 00 00 00 0a 00 00 00 61 | 00 00 00 00 00 00 00 18 |.......a|........|
|00000570| 00 00 00 68 00 00 00 00 | 00 00 00 6d 00 00 00 1e |...h....|...m....|
|00000580| 00 00 00 2a 00 00 00 64 | 00 00 00 1a 00 00 00 24 |...*...d|.......$|
|00000590| 43 41 53 74 00 00 36 0f | 00 04 00 00 36 05 0b 00 |CASt..6.|....6...|
|000005a0| 00 03 00 00 00 14 01 44 | ca e0 00 00 00 00 00 00 |.......D|........|
|000005b0| 00 00 00 00 00 01 00 07 | 00 00 00 00 00 00 35 8b |........|......5.|
|000005c0| 00 00 35 a5 00 00 35 a5 | 00 00 35 a5 00 00 35 a5 |..5...5.|..5...5.|
|000005d0| 00 00 35 b9 00 00 35 cf | 67 6c 6f 62 61 6c 20 6d |..5...5.|global m|
|000005e0| 65 74 65 72 4c 65 76 65 | 6c 2c 20 6d 6f 64 75 6c |eterLeve|l, modul|
|000005f0| 65 4c 69 73 74 2c 20 62 | 75 64 4d 65 74 65 72 4c |eList, b|udMeterL|
|00000600| 69 73 74 2c 20 62 75 64 | 4c 69 73 74 2c 20 63 75 |ist, bud|List, cu|
|00000610| 72 72 65 6e 74 4d 6f 64 | 75 6c 65 0d 67 6c 6f 62 |rrentMod|ule.glob|
|00000620| 61 6c 20 66 69 6c 65 53 | 65 70 2c 20 68 65 6c 70 |al fileS|ep, help|
|00000630| 53 6f 75 6e 64 0d 67 6c | 6f 62 61 6c 20 72 61 6e |Sound.gl|obal ran|
|00000640| 64 6f 6d 52 61 65 0d 67 | 6c 6f 62 61 6c 20 47 75 |domRae.g|lobal Gu|
|00000650| 73 48 65 6c 70 48 65 61 | 64 43 68 61 6e 2c 20 47 |sHelpHea|dChan, G|
|00000660| 75 73 50 75 7a 7a 6c 65 | 48 65 6c 70 43 68 61 6e |usPuzzle|HelpChan|
|00000670| 2c 20 42 75 64 4d 65 74 | 65 72 48 65 6c 70 43 68 |, BudMet|erHelpCh|
|00000680| 61 6e 0d 67 6c 6f 62 61 | 6c 20 52 61 65 53 74 61 |an.globa|l RaeSta|
|00000690| 74 75 65 43 68 61 6e 0d | 6f 6e 20 75 70 64 61 74 |tueChan.|on updat|
|000006a0| 65 52 61 65 0d 20 20 0d | 20 20 2d 2d 20 46 69 72 |eRae. .| -- Fir|
|000006b0| 73 74 2c 20 63 6f 75 6e | 74 20 74 68 65 20 6e 75 |st, coun|t the nu|
|000006c0| 6d 62 65 72 20 6f 66 20 | 63 6f 6d 70 6c 65 74 65 |mber of |complete|
|000006d0| 64 20 6d 6f 64 75 6c 65 | 73 0d 20 20 73 65 74 20 |d module|s. set |
|000006e0| 6e 75 6d 62 65 72 4f 66 | 43 6f 6d 70 6c 65 74 65 |numberOf|Complete|
|000006f0| 64 4d 6f 64 75 6c 65 73 | 20 3d 20 63 6f 75 6e 74 |dModules| = count|
|00000700| 44 6f 6e 65 42 75 64 73 | 28 29 0d 20 20 0d 20 20 |DoneBuds|(). . |
|00000710| 2d 2d 20 54 68 65 6e 2c | 20 73 68 6f 77 20 74 68 |-- Then,| show th|
|00000720| 65 20 52 61 65 20 73 74 | 61 74 75 65 20 61 73 20 |e Rae st|atue as |
|00000730| 61 70 70 72 6f 70 72 69 | 61 74 65 0d 20 20 69 66 |appropri|ate. if|
|00000740| 20 6e 75 6d 62 65 72 4f | 66 43 6f 6d 70 6c 65 74 | numberO|fComplet|
|00000750| 65 64 4d 6f 64 75 6c 65 | 73 20 3d 20 30 20 74 68 |edModule|s = 0 th|
|00000760| 65 6e 20 65 78 69 74 0d | 20 20 0d 20 20 70 75 70 |en exit.| . pup|
|00000770| 70 65 74 53 70 72 69 74 | 65 20 52 61 65 53 74 61 |petSprit|e RaeSta|
|00000780| 74 75 65 43 68 61 6e 2c | 20 54 52 55 45 0d 20 20 |tueChan,| TRUE. |
|00000790| 0d 20 20 69 66 20 6e 75 | 6d 62 65 72 4f 66 43 6f |. if nu|mberOfCo|
|000007a0| 6d 70 6c 65 74 65 64 4d | 6f 64 75 6c 65 73 20 3d |mpletedM|odules =|
|000007b0| 20 36 20 74 68 65 6e 0d | 20 20 20 20 73 65 74 20 | 6 then.| set |
|000007c0| 74 68 65 20 63 61 73 74 | 4e 75 6d 20 6f 66 20 73 |the cast|Num of s|
|000007d0| 70 72 69 74 65 20 52 61 | 65 53 74 61 74 75 65 43 |prite Ra|eStatueC|
|000007e0| 68 61 6e 20 20 3d 20 74 | 68 65 20 6e 75 6d 62 65 |han = t|he numbe|
|000007f0| 72 20 6f 66 20 63 61 73 | 74 20 22 52 61 65 43 6f |r of cas|t "RaeCo|
|00000800| 6d 70 6c 65 74 65 22 0d | 20 20 20 20 75 70 64 61 |mplete".| upda|
|00000810| 74 65 53 74 61 67 65 0d | 20 20 20 20 64 6f 42 69 |teStage.| doBi|
|00000820| 67 46 69 6e 61 6c 65 28 | 29 0d 20 20 20 20 65 78 |gFinale(|). ex|
|00000830| 69 74 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 0d 20 |it. end| if. . |
|00000840| 20 73 65 74 20 74 68 65 | 20 63 61 73 74 4e 75 6d | set the| castNum|
|00000850| 20 6f 66 20 73 70 72 69 | 74 65 20 52 61 65 53 74 | of spri|te RaeSt|
|00000860| 61 74 75 65 43 68 61 6e | 20 20 3d 20 74 68 65 20 |atueChan| = the |
|00000870| 6e 75 6d 62 65 72 20 6f | 66 20 63 61 73 74 c2 0d |number o|f cast..|
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 22 52 61 | | ("Ra|
|00000890| 65 22 20 26 26 20 73 74 | 72 69 6e 67 28 72 61 6e |e" && st|ring(ran|
|000008a0| 64 6f 6d 52 61 65 29 20 | 26 20 22 2f 22 20 26 20 |domRae) |& "/" & |
|000008b0| 73 74 72 69 6e 67 28 6e | 75 6d 62 65 72 4f 66 43 |string(n|umberOfC|
|000008c0| 6f 6d 70 6c 65 74 65 64 | 4d 6f 64 75 6c 65 73 29 |ompleted|Modules)|
|000008d0| 29 0d 20 20 0d 20 20 0d | 20 20 75 70 64 61 74 65 |). . .| update|
|000008e0| 53 74 61 67 65 0d 20 20 | 0d 65 6e 64 20 75 70 64 |Stage. |.end upd|
|000008f0| 61 74 65 52 61 65 0d 0d | 0d 6f 6e 20 64 6f 42 69 |ateRae..|.on doBi|
|00000900| 67 46 69 6e 61 6c 65 0d | 20 20 2d 2d 20 52 65 73 |gFinale.| -- Res|
|00000910| 65 74 20 74 68 65 20 62 | 75 64 4d 65 74 65 72 0d |et the b|udMeter.|
|00000920| 20 20 62 75 64 4d 65 74 | 65 72 53 65 74 75 70 28 | budMet|erSetup(|
|00000930| 29 0d 20 20 2d 2d 20 52 | 65 6c 65 61 73 65 20 61 |). -- R|elease a|
|00000940| 6c 6c 20 6d 65 6d 6f 72 | 79 0d 20 20 75 6e 6c 6f |ll memor|y. unlo|
|00000950| 61 64 0d 20 20 73 6f 75 | 6e 64 20 70 6c 61 79 46 |ad. sou|nd playF|
|00000960| 69 6c 65 20 32 2c 20 74 | 68 65 20 70 61 74 68 6e |ile 2, t|he pathn|
|00000970| 61 6d 65 20 26 20 22 46 | 69 53 6f 75 6e 64 73 22 |ame & "F|iSounds"|
|00000980| 20 26 20 66 69 6c 65 53 | 65 70 20 26 20 22 68 75 | & fileS|ep & "hu|
|00000990| 72 61 79 2e 61 69 66 22 | 0d 20 20 67 6f 20 74 6f |ray.aif"|. go to|
|000009a0| 20 6d 6f 76 69 65 20 22 | 46 69 6e 61 6c 22 20 20 | movie "|Final" |
|000009b0| 2d 2d 20 53 68 6f 77 20 | 74 68 65 20 63 6f 6e 67 |-- Show |the cong|
|000009c0| 72 61 74 75 6c 61 74 6f | 72 79 20 66 69 6e 61 6c |ratulato|ry final|
|000009d0| 65 20 6d 6f 76 69 65 0d | 65 6e 64 20 64 6f 42 69 |e movie.|end doBi|
|000009e0| 67 46 69 6e 61 6c 65 0d | 0d 0d 6f 6e 20 63 6f 75 |gFinale.|..on cou|
|000009f0| 6e 74 44 6f 6e 65 42 75 | 64 73 0d 20 20 0d 20 20 |ntDoneBu|ds. . |
|00000a00| 2d 2d 20 43 6f 75 6e 74 | 20 74 68 65 20 6e 75 6d |-- Count| the num|
|00000a10| 62 65 72 20 6f 66 20 63 | 6f 6d 70 6c 65 74 65 64 |ber of c|ompleted|
|00000a20| 20 6d 6f 64 75 6c 65 73 | 0d 20 20 70 75 74 20 30 | modules|. put 0|
|00000a30| 20 69 6e 74 6f 20 6e 75 | 6d 62 65 72 4f 66 43 6f | into nu|mberOfCo|
|00000a40| 6d 70 6c 65 74 65 64 4d | 6f 64 75 6c 65 73 0d 20 |mpletedM|odules. |
|00000a50| 20 0d 20 20 2d 2d 20 53 | 65 61 72 63 68 20 74 68 | . -- S|earch th|
|00000a60| 72 6f 75 67 68 74 20 61 | 6c 6c 20 74 68 65 20 6d |rought a|ll the m|
|00000a70| 6f 64 75 6c 65 73 0d 20 | 20 72 65 70 65 61 74 20 |odules. | repeat |
|00000a80| 77 69 74 68 20 78 20 3d | 20 31 20 74 6f 20 63 6f |with x =| 1 to co|
|00000a90| 75 6e 74 20 28 6d 6f 64 | 75 6c 65 4c 69 73 74 29 |unt (mod|uleList)|
|00000aa0| 0d 20 20 20 20 2d 2d 20 | 77 68 61 74 20 69 73 20 |. -- |what is |
|00000ab0| 74 68 65 20 6d 6f 64 75 | 6c 65 3f 0d 20 20 20 20 |the modu|le?. |
|00000ac0| 70 75 74 20 67 65 74 4f | 6e 65 28 6d 6f 64 75 6c |put getO|ne(modul|
|00000ad0| 65 4c 69 73 74 2c 20 78 | 29 20 69 6e 74 6f 20 74 |eList, x|) into t|
|00000ae0| 68 65 4d 6f 64 75 6c 65 | 20 0d 20 20 20 20 0d 20 |heModule| . . |
|00000af0| 20 20 20 70 75 74 20 30 | 20 69 6e 74 6f 20 6e 75 | put 0| into nu|
|00000b00| 6d 62 65 72 4f 66 42 75 | 64 73 46 6f 75 6e 64 0d |mberOfBu|dsFound.|
|00000b10| 20 20 20 20 0d 20 20 20 | 20 2d 2d 20 43 68 65 63 | . | -- Chec|
|00000b20| 6b 20 74 68 65 20 74 68 | 72 65 65 20 62 75 64 73 |k the th|ree buds|
|00000b30| 20 66 6f 72 20 74 68 69 | 73 20 6d 6f 64 75 6c 65 | for thi|s module|
|00000b40| 0d 20 20 20 20 72 65 70 | 65 61 74 20 77 69 74 68 |. rep|eat with|
|00000b50| 20 62 75 64 4f 66 66 73 | 65 74 20 3d 20 31 20 74 | budOffs|et = 1 t|
|00000b60| 6f 20 33 0d 20 20 20 20 | 20 20 2d 2d 20 77 68 61 |o 3. | -- wha|
|00000b70| 74 20 69 73 20 74 68 65 | 20 73 74 61 74 75 73 20 |t is the| status |
|00000b80| 6f 66 20 74 68 69 73 20 | 62 75 64 3f 20 30 20 3d |of this |bud? 0 =|
|00000b90| 20 6e 6f 74 20 61 63 74 | 69 76 65 2c 20 31 20 3d | not act|ive, 1 =|
|00000ba0| 20 61 63 74 69 76 65 2c | 20 32 20 3d 20 61 6c 72 | active,| 2 = alr|
|00000bb0| 65 61 64 79 20 73 70 6f | 74 74 65 64 0d 20 20 20 |eady spo|tted. |
|00000bc0| 20 20 20 70 75 74 20 67 | 65 74 41 74 28 62 75 64 | put g|etAt(bud|
|00000bd0| 4d 65 74 65 72 4c 69 73 | 74 2c 20 28 28 78 2d 31 |MeterLis|t, ((x-1|
|00000be0| 29 2a 33 29 20 2b 20 62 | 75 64 4f 66 66 73 65 74 |)*3) + b|udOffset|
|00000bf0| 29 20 69 6e 74 6f 20 62 | 75 64 53 74 61 74 75 73 |) into b|udStatus|
|00000c00| 0d 20 20 20 20 20 20 0d | 20 20 20 20 20 20 69 66 |. .| if|
|00000c10| 20 62 75 64 53 74 61 74 | 75 73 20 3d 20 31 20 74 | budStat|us = 1 t|
|00000c20| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 70 75 74 20 |hen. | put |
|00000c30| 6e 75 6d 62 65 72 4f 66 | 42 75 64 73 46 6f 75 6e |numberOf|BudsFoun|
|00000c40| 64 20 2b 20 31 20 69 6e | 74 6f 20 6e 75 6d 62 65 |d + 1 in|to numbe|
|00000c50| 72 4f 66 42 75 64 73 46 | 6f 75 6e 64 0d 20 20 20 |rOfBudsF|ound. |
|00000c60| 20 20 20 65 6e 64 20 69 | 66 0d 20 20 20 20 65 6e | end i|f. en|
|00000c70| 64 20 72 65 70 65 61 74 | 0d 20 20 20 20 0d 20 20 |d repeat|. . |
|00000c80| 20 20 0d 20 20 20 20 2d | 2d 20 49 66 20 65 78 61 | . -|- If exa|
|00000c90| 63 74 6c 79 20 74 68 72 | 65 65 20 77 65 72 65 20 |ctly thr|ee were |
|00000ca0| 66 6f 75 6e 64 2c 20 69 | 74 20 69 73 20 63 6f 6d |found, i|t is com|
|00000cb0| 70 6c 65 74 65 0d 20 20 | 20 20 69 66 20 6e 75 6d |plete. | if num|
|00000cc0| 62 65 72 4f 66 42 75 64 | 73 46 6f 75 6e 64 20 3e |berOfBud|sFound >|
|00000cd0| 20 33 20 74 68 65 6e 20 | 61 6c 65 72 74 20 22 50 | 3 then |alert "P|
|00000ce0| 52 4f 47 52 41 4d 4d 45 | 52 3a 20 54 6f 6f 20 6d |ROGRAMME|R: Too m|
|00000cf0| 61 6e 79 20 62 75 64 73 | 20 28 22 26 26 20 73 74 |any buds| ("&& st|
|00000d00| 72 69 6e 67 28 6e 75 6d | 62 65 72 4f 66 42 75 64 |ring(num|berOfBud|
|00000d10| 73 46 6f 75 6e 64 29 20 | 26 26 20 22 73 70 6f 74 |sFound) |&& "spot|
|00000d20| 74 65 64 20 69 6e 20 6d | 6f 64 75 6c 65 22 26 26 |ted in m|odule"&&|
|00000d30| 74 68 65 4d 6f 64 75 6c | 65 0d 20 20 20 20 69 66 |theModul|e. if|
|00000d40| 20 6e 75 6d 62 65 72 4f | 66 42 75 64 73 46 6f 75 | numberO|fBudsFou|
|00000d50| 6e 64 20 3d 20 33 20 74 | 68 65 6e 20 0d 20 20 20 |nd = 3 t|hen . |
|00000d60| 20 20 20 70 75 74 20 6e | 75 6d 62 65 72 4f 66 43 | put n|umberOfC|
|00000d70| 6f 6d 70 6c 65 74 65 64 | 4d 6f 64 75 6c 65 73 20 |ompleted|Modules |
|00000d80| 2b 20 31 20 69 6e 74 6f | 20 6e 75 6d 62 65 72 4f |+ 1 into| numberO|
|00000d90| 66 43 6f 6d 70 6c 65 74 | 65 64 4d 6f 64 75 6c 65 |fComplet|edModule|
|00000da0| 73 0d 20 20 20 20 65 6e | 64 20 69 66 0d 20 20 65 |s. en|d if. e|
|00000db0| 6e 64 20 72 65 70 65 61 | 74 0d 20 20 0d 20 20 72 |nd repea|t. . r|
|00000dc0| 65 74 75 72 6e 20 6e 75 | 6d 62 65 72 4f 66 43 6f |eturn nu|mberOfCo|
|00000dd0| 6d 70 6c 65 74 65 64 4d | 6f 64 75 6c 65 73 0d 65 |mpletedM|odules.e|
|00000de0| 6e 64 20 63 6f 75 6e 74 | 44 6f 6e 65 42 75 64 73 |nd count|DoneBuds|
|00000df0| 0d 0d 0d 6f 6e 20 62 75 | 64 4d 65 74 65 72 53 65 |...on bu|dMeterSe|
|00000e00| 74 75 70 0d 20 20 69 66 | 20 76 6f 69 64 50 28 6d |tup. if| voidP(m|
|00000e10| 65 74 65 72 4c 65 76 65 | 6c 29 20 74 68 65 6e 0d |eterLeve|l) then.|
|00000e20| 20 20 20 20 61 6c 65 72 | 74 20 22 50 52 4f 47 52 | aler|t "PROGR|
|00000e30| 41 4d 4d 45 52 3a 20 27 | 4d 65 74 65 72 4c 65 76 |AMMER: '|MeterLev|
|00000e40| 65 6c 27 20 77 61 73 20 | 6e 6f 74 20 69 6e 69 74 |el' was |not init|
|00000e50| 69 61 6c 69 7a 65 64 21 | 20 53 65 74 74 69 6e 67 |ialized!| Setting|
|00000e60| 20 74 6f 20 31 2e 22 0d | 20 20 20 20 70 75 74 20 | to 1.".| put |
|00000e70| 31 20 69 6e 74 6f 20 6d | 65 74 65 72 4c 65 76 65 |1 into m|eterLeve|
|00000e80| 6c 20 2d 2d 20 64 65 66 | 61 75 6c 74 20 73 65 74 |l -- def|ault set|
|00000e90| 74 69 6e 67 0d 20 20 65 | 6e 64 20 69 66 0d 20 20 |ting. e|nd if. |
|00000ea0| 70 75 74 20 5b 23 73 75 | 3a 31 2c 20 23 70 6f 3a |put [#su|:1, #po:|
|00000eb0| 32 2c 20 23 73 64 3a 33 | 2c 20 23 61 71 3a 34 2c |2, #sd:3|, #aq:4,|
|00000ec0| 20 23 6c 69 3a 35 2c 20 | 23 72 61 3a 36 5d 20 69 | #li:5, |#ra:6] i|
|00000ed0| 6e 74 6f 20 6d 6f 64 75 | 6c 65 4c 69 73 74 0d 20 |nto modu|leList. |
|00000ee0| 20 69 66 20 6d 65 74 65 | 72 4c 65 76 65 6c 20 3e | if mete|rLevel >|
|00000ef0| 20 31 20 74 68 65 6e 0d | 20 20 20 20 70 75 74 20 | 1 then.| put |
|00000f00| 5b 30 2c 20 30 2c 20 30 | 2c 20 30 2c 20 30 2c 20 |[0, 0, 0|, 0, 0, |
|00000f10| 30 2c 20 30 2c 20 30 2c | 20 30 2c 20 30 2c 20 30 |0, 0, 0,| 0, 0, 0|
|00000f20| 2c 20 30 2c 20 30 2c 20 | 30 2c 20 30 2c 20 30 2c |, 0, 0, |0, 0, 0,|
|00000f30| 20 30 2c 20 30 2c 20 30 | 2c 20 30 2c 20 30 2c 20 | 0, 0, 0|, 0, 0, |
|00000f40| 30 2c 20 30 2c 20 30 2c | 20 30 2c 20 30 2c 20 30 |0, 0, 0,| 0, 0, 0|
|00000f50| 2c c2 0d 30 2c 20 30 2c | 20 30 2c 20 30 2c 20 30 |,..0, 0,| 0, 0, 0|
|00000f60| 2c 20 30 2c 20 30 2c 20 | 30 2c 20 30 2c 20 30 2c |, 0, 0, |0, 0, 0,|
|00000f70| 20 30 2c 20 30 2c 20 30 | 2c 20 30 2c 20 30 2c 20 | 0, 0, 0|, 0, 0, |
|00000f80| 30 2c 20 30 2c 20 30 2c | 20 30 2c 20 30 2c 20 30 |0, 0, 0,| 0, 0, 0|
|00000f90| 2c 20 30 2c 20 30 2c 20 | 30 2c 20 30 2c 20 30 2c |, 0, 0, |0, 0, 0,|
|00000fa0| 20 30 5d 20 69 6e 74 6f | 20 62 75 64 4c 69 73 74 | 0] into| budList|
|00000fb0| 0d 20 20 20 20 72 65 70 | 65 61 74 20 77 69 74 68 |. rep|eat with|
|00000fc0| 20 6d 20 3d 20 30 20 74 | 6f 20 35 20 20 20 20 20 | m = 0 t|o 5 |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 46 6f 72 20 | | -- For |
|00000fe0| 65 61 63 68 20 6d 6f 64 | 75 6c 65 20 28 39 20 69 |each mod|ule (9 i|
|00000ff0| 74 65 6d 73 20 69 6e 20 | 61 20 72 6f 77 29 0d 20 |tems in |a row). |
|00001000| 20 20 20 20 20 72 65 70 | 65 61 74 20 77 69 74 68 | rep|eat with|
|00001010| 20 62 20 3d 20 30 20 74 | 6f 20 32 20 20 20 20 20 | b = 0 t|o 2 |
|00001020| 20 20 20 20 20 20 20 2d | 2d 20 46 6f 72 20 65 61 | -|- For ea|
|00001030| 63 68 20 63 68 61 72 61 | 63 74 65 72 20 28 33 20 |ch chara|cter (3 |
|00001040| 69 74 65 6d 73 20 69 6e | 20 61 20 72 6f 77 29 20 |items in| a row) |
|00001050| 77 69 74 68 69 6e 20 65 | 61 63 68 20 6d 6f 64 75 |within e|ach modu|
|00001060| 6c 65 0d 20 20 20 20 20 | 20 20 20 72 65 70 65 61 |le. | repea|
|00001070| 74 20 77 69 74 68 20 73 | 20 3d 20 31 20 74 6f 20 |t with s| = 1 to |
|00001080| 28 34 20 2d 20 6d 65 74 | 65 72 4c 65 76 65 6c 29 |(4 - met|erLevel)|
|00001090| 20 20 2d 2d 20 44 6f 20 | 69 74 20 6f 6e 63 65 20 | -- Do |it once |
|000010a0| 66 6f 72 20 6d 65 74 65 | 72 4c 65 76 65 6c 20 33 |for mete|rLevel 3|
|000010b0| 2c 20 6f 72 20 74 77 69 | 63 65 20 66 6f 72 20 6c |, or twi|ce for l|
|000010c0| 65 76 65 6c 20 32 0d 20 | 20 20 20 20 20 20 20 20 |evel 2. | |
|000010d0| 20 70 75 74 20 72 61 6e | 64 6f 6d 28 33 29 2b 28 | put ran|dom(3)+(|
|000010e0| 62 2a 33 29 2b 28 6d 2a | 39 29 20 69 6e 74 6f 20 |b*3)+(m*|9) into |
|000010f0| 6f 66 66 73 65 74 0d 20 | 20 20 20 20 20 20 20 20 |offset. | |
|00001100| 20 2d 2d 20 6c 6f 6f 70 | 20 75 6e 74 69 6c 20 77 | -- loop| until w|
|00001110| 65 20 66 69 6e 64 20 61 | 6e 20 65 6d 70 74 79 20 |e find a|n empty |
|00001120| 73 6c 6f 74 0d 20 20 20 | 20 20 20 20 20 20 20 72 |slot. | r|
|00001130| 65 70 65 61 74 20 77 68 | 69 6c 65 20 67 65 74 41 |epeat wh|ile getA|
|00001140| 74 28 62 75 64 4c 69 73 | 74 2c 20 6f 66 66 73 65 |t(budLis|t, offse|
|00001150| 74 29 20 3d 20 31 0d 20 | 20 20 20 20 20 20 20 20 |t) = 1. | |
|00001160| 20 20 20 70 75 74 20 72 | 61 6e 64 6f 6d 28 33 29 | put r|andom(3)|
|00001170| 2b 28 62 2a 33 29 2b 28 | 6d 2a 39 29 20 69 6e 74 |+(b*3)+(|m*9) int|
|00001180| 6f 20 6f 66 66 73 65 74 | 0d 20 20 20 20 20 20 20 |o offset|. |
|00001190| 20 20 20 65 6e 64 20 72 | 65 70 65 61 74 0d 20 20 | end r|epeat. |
|000011a0| 20 20 20 20 20 20 20 20 | 64 65 6c 65 74 65 41 74 | |deleteAt|
|000011b0| 20 62 75 64 4c 69 73 74 | 2c 20 6f 66 66 73 65 74 | budList|, offset|
|000011c0| 0d 20 20 20 20 20 20 20 | 20 20 20 61 64 64 41 74 |. | addAt|
|000011d0| 20 62 75 64 4c 69 73 74 | 2c 20 6f 66 66 73 65 74 | budList|, offset|
|000011e0| 2c 20 31 0d 20 20 20 20 | 20 20 20 20 65 6e 64 20 |, 1. | end |
|000011f0| 72 65 70 65 61 74 0d 20 | 20 20 20 20 20 65 6e 64 |repeat. | end|
|00001200| 20 72 65 70 65 61 74 0d | 20 20 20 20 65 6e 64 20 | repeat.| end |
|00001210| 72 65 70 65 61 74 0d 20 | 20 65 6c 73 65 0d 20 20 |repeat. | else. |
|00001220| 20 20 2d 2d 20 6e 6f 20 | 6e 65 65 64 20 74 6f 20 | -- no |need to |
|00001230| 63 61 6c 63 75 6c 61 74 | 65 20 69 74 20 73 69 6e |calculat|e it sin|
|00001240| 63 65 20 61 6c 6c 20 74 | 68 65 20 62 75 64 73 20 |ce all t|he buds |
|00001250| 61 72 65 20 61 63 74 69 | 76 65 20 6f 6e 20 74 68 |are acti|ve on th|
|00001260| 65 20 65 61 73 69 65 73 | 74 20 73 65 74 74 69 6e |e easies|t settin|
|00001270| 67 0d 20 20 20 20 70 75 | 74 20 5b 31 2c 20 31 2c |g. pu|t [1, 1,|
|00001280| 20 31 2c 20 31 2c 20 31 | 2c 20 31 2c 20 31 2c 20 | 1, 1, 1|, 1, 1, |
|00001290| 31 2c 20 31 2c 20 31 2c | 20 31 2c 20 31 2c 20 31 |1, 1, 1,| 1, 1, 1|
|000012a0| 2c 20 31 2c 20 31 2c 20 | 31 2c 20 31 2c 20 31 2c |, 1, 1, |1, 1, 1,|
|000012b0| 20 31 2c 20 31 2c 20 31 | 2c 20 31 2c 20 31 2c 20 | 1, 1, 1|, 1, 1, |
|000012c0| 31 2c 20 31 2c 20 31 2c | 20 31 2c c2 0d 31 2c 20 |1, 1, 1,| 1,..1, |
|000012d0| 31 2c 20 31 2c 20 31 2c | 20 31 2c 20 31 2c 20 31 |1, 1, 1,| 1, 1, 1|
|000012e0| 2c 20 31 2c 20 31 2c 20 | 31 2c 20 31 2c 20 31 2c |, 1, 1, |1, 1, 1,|
|000012f0| 20 31 2c 20 31 2c 20 31 | 2c 20 31 2c 20 31 2c 20 | 1, 1, 1|, 1, 1, |
|00001300| 31 2c 20 31 2c 20 31 2c | 20 31 2c 20 31 2c 20 31 |1, 1, 1,| 1, 1, 1|
|00001310| 2c 20 31 2c 20 31 2c 20 | 31 2c 20 31 5d 20 69 6e |, 1, 1, |1, 1] in|
|00001320| 74 6f 20 62 75 64 4c 69 | 73 74 0d 20 20 65 6e 64 |to budLi|st. end|
|00001330| 20 69 66 0d 20 20 70 75 | 74 20 5b 30 2c 30 2c 30 | if. pu|t [0,0,0|
|00001340| 2c 30 2c 30 2c 30 2c 30 | 2c 30 2c 30 2c 30 2c 30 |,0,0,0,0|,0,0,0,0|
|00001350| 2c 30 2c 30 2c 30 2c 30 | 2c 30 2c 30 2c 30 5d 20 |,0,0,0,0|,0,0,0] |
|00001360| 69 6e 74 6f 20 62 75 64 | 4d 65 74 65 72 4c 69 73 |into bud|MeterLis|
|00001370| 74 0d 65 6e 64 20 62 75 | 64 4d 65 74 65 72 53 65 |t.end bu|dMeterSe|
|00001380| 74 75 70 0d 0d 6f 6e 20 | 63 68 65 63 6b 42 75 64 |tup..on |checkBud|
|00001390| 20 6d 6f 64 75 6c 65 2c | 20 62 75 64 4e 75 6d 62 | module,| budNumb|
|000013a0| 65 72 0d 20 20 2d 2d 20 | 76 61 6c 69 64 61 74 65 |er. -- |validate|
|000013b0| 20 61 72 67 75 6d 65 6e | 74 73 0d 20 20 69 66 20 | argumen|ts. if |
|000013c0| 62 75 64 4e 75 6d 62 65 | 72 20 3c 20 31 20 4f 52 |budNumbe|r < 1 OR|
|000013d0| 20 62 75 64 4e 75 6d 62 | 65 72 20 3e 20 39 20 74 | budNumb|er > 9 t|
|000013e0| 68 65 6e 0d 20 20 20 20 | 61 6c 65 72 74 20 22 50 |hen. |alert "P|
|000013f0| 52 4f 47 52 41 4d 4d 45 | 52 3a 20 41 6e 20 69 6e |ROGRAMME|R: An in|
|00001400| 76 61 6c 69 64 20 62 75 | 64 20 73 70 6f 74 74 69 |valid bu|d spotti|
|00001410| 6e 67 20 76 61 6c 75 65 | 22 20 26 26 20 62 75 64 |ng value|" && bud|
|00001420| 4e 75 6d 62 65 72 20 26 | 26 20 22 77 61 73 20 70 |Number &|& "was p|
|00001430| 61 73 73 65 64 21 20 20 | 55 73 65 20 31 20 74 68 |assed! |Use 1 th|
|00001440| 72 6f 75 67 68 20 39 2e | 22 0d 20 20 20 20 72 65 |rough 9.|". re|
|00001450| 74 75 72 6e 20 46 41 4c | 53 45 0d 20 20 20 20 65 |turn FAL|SE. e|
|00001460| 78 69 74 0d 20 20 65 6e | 64 20 69 66 0d 20 20 0d |xit. en|d if. .|
|00001470| 20 20 2d 2d 20 77 68 61 | 74 20 69 73 20 74 68 65 | -- wha|t is the|
|00001480| 20 6d 6f 64 75 6c 65 20 | 6e 75 6d 62 65 72 3f 0d | module |number?.|
|00001490| 20 20 70 75 74 20 67 65 | 74 41 50 72 6f 70 28 6d | put ge|tAProp(m|
|000014a0| 6f 64 75 6c 65 4c 69 73 | 74 2c 20 6d 6f 64 75 6c |oduleLis|t, modul|
|000014b0| 65 29 20 69 6e 74 6f 20 | 69 6e 64 65 78 4f 66 66 |e) into |indexOff|
|000014c0| 73 65 74 0d 20 20 0d 20 | 20 2d 2d 20 69 66 20 74 |set. . | -- if t|
|000014d0| 68 65 72 65 20 77 61 73 | 20 6e 6f 20 6d 6f 64 75 |here was| no modu|
|000014e0| 6c 65 20 63 6f 64 65 20 | 6d 61 74 63 68 0d 20 20 |le code |match. |
|000014f0| 69 66 20 76 6f 69 64 50 | 28 69 6e 64 65 78 4f 66 |if voidP|(indexOf|
|00001500| 66 73 65 74 29 20 74 68 | 65 6e 0d 20 20 20 20 61 |fset) th|en. a|
|00001510| 6c 65 72 74 20 22 50 52 | 4f 47 52 41 4d 4d 45 52 |lert "PR|OGRAMMER|
|00001520| 3a 20 41 6e 20 69 6e 76 | 61 6c 69 64 20 6d 6f 64 |: An inv|alid mod|
|00001530| 75 6c 65 20 63 6f 64 65 | 20 77 61 73 20 70 61 73 |ule code| was pas|
|00001540| 73 65 64 21 20 20 55 73 | 65 20 23 73 75 2c 20 23 |sed! Us|e #su, #|
|00001550| 70 6f 2c 20 23 73 64 2c | 20 23 61 71 2c 20 23 6c |po, #sd,| #aq, #l|
|00001560| 69 2c 20 6f 72 20 23 72 | 61 22 0d 20 20 20 20 72 |i, or #r|a". r|
|00001570| 65 74 75 72 6e 20 46 41 | 4c 53 45 0d 20 20 20 20 |eturn FA|LSE. |
|00001580| 65 78 69 74 0d 20 20 65 | 6e 64 20 69 66 0d 20 20 |exit. e|nd if. |
|00001590| 0d 20 20 2d 2d 20 77 68 | 69 63 68 20 69 74 65 6d |. -- wh|ich item|
|000015a0| 20 69 6e 20 62 75 64 4c | 69 73 74 20 69 73 20 74 | in budL|ist is t|
|000015b0| 68 69 73 3f 0d 20 20 70 | 75 74 20 28 69 6e 64 65 |his?. p|ut (inde|
|000015c0| 78 4f 66 66 73 65 74 20 | 2d 20 31 29 20 2a 20 39 |xOffset |- 1) * 9|
|000015d0| 20 2b 20 62 75 64 4e 75 | 6d 62 65 72 20 69 6e 74 | + budNu|mber int|
|000015e0| 6f 20 62 75 64 4f 66 66 | 73 65 74 0d 20 20 2d 2d |o budOff|set. --|
|000015f0| 20 77 68 61 74 20 69 73 | 20 74 68 65 20 73 74 61 | what is| the sta|
|00001600| 74 75 73 20 6f 66 20 74 | 68 69 73 20 62 75 64 3f |tus of t|his bud?|
|00001610| 20 30 20 3d 20 6e 6f 74 | 20 61 63 74 69 76 65 2c | 0 = not| active,|
|00001620| 20 31 20 3d 20 61 63 74 | 69 76 65 2c 20 32 20 3d | 1 = act|ive, 2 =|
|00001630| 20 61 6c 72 65 61 64 79 | 20 73 70 6f 74 74 65 64 | already| spotted|
|00001640| 0d 20 20 70 75 74 20 67 | 65 74 41 74 28 62 75 64 |. put g|etAt(bud|
|00001650| 4c 69 73 74 2c 20 62 75 | 64 4f 66 66 73 65 74 29 |List, bu|dOffset)|
|00001660| 20 69 6e 74 6f 20 62 75 | 64 53 74 61 74 75 73 0d | into bu|dStatus.|
|00001670| 20 20 69 66 20 62 75 64 | 53 74 61 74 75 73 20 3d | if bud|Status =|
|00001680| 20 30 20 4f 52 20 62 75 | 64 53 74 61 74 75 73 20 | 0 OR bu|dStatus |
|00001690| 3d 20 32 20 74 68 65 6e | 0d 20 20 20 20 72 65 74 |= 2 then|. ret|
|000016a0| 75 72 6e 20 46 41 4c 53 | 45 0d 20 20 20 20 65 78 |urn FALS|E. ex|
|000016b0| 69 74 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 69 66 |it. end| if. if|
|000016c0| 20 62 75 64 53 74 61 74 | 75 73 20 3d 20 31 20 74 | budStat|us = 1 t|
|000016d0| 68 65 6e 0d 20 20 20 20 | 2d 2d 20 42 75 64 20 53 |hen. |-- Bud S|
|000016e0| 70 6f 74 74 69 6e 67 20 | 21 21 21 0d 20 20 20 20 |potting |!!!. |
|000016f0| 2d 2d 20 42 75 74 20 64 | 69 64 20 77 65 20 61 6c |-- But d|id we al|
|00001700| 72 65 61 64 79 20 66 69 | 6e 64 20 61 20 62 75 64 |ready fi|nd a bud|
|00001710| 20 6f 66 20 74 68 69 73 | 20 74 79 70 65 20 69 6e | of this| type in|
|00001720| 20 74 68 69 73 20 6d 6f | 64 75 6c 65 3f 0d 20 20 | this mo|dule?. |
|00001730| 20 20 70 75 74 20 28 28 | 62 75 64 4f 66 66 73 65 | put ((|budOffse|
|00001740| 74 2d 31 29 2f 33 29 20 | 2b 20 31 20 69 6e 74 6f |t-1)/3) |+ 1 into|
|00001750| 20 6d 65 74 65 72 4f 66 | 66 73 65 74 20 2d 2d 20 | meterOf|fset -- |
|00001760| 31 2f 33 20 3d 20 30 20 | 75 73 69 6e 67 20 69 6e |1/3 = 0 |using in|
|00001770| 74 65 67 65 72 20 6d 61 | 74 68 0d 20 20 20 20 70 |teger ma|th. p|
|00001780| 75 74 20 67 65 74 41 74 | 28 62 75 64 4d 65 74 65 |ut getAt|(budMete|
|00001790| 72 4c 69 73 74 2c 20 6d | 65 74 65 72 4f 66 66 73 |rList, m|eterOffs|
|000017a0| 65 74 29 20 69 6e 74 6f | 20 6d 65 74 65 72 53 74 |et) into| meterSt|
|000017b0| 61 74 75 73 0d 20 20 20 | 20 69 66 20 6d 65 74 65 |atus. | if mete|
|000017c0| 72 53 74 61 74 75 73 20 | 3d 20 31 20 74 68 65 6e |rStatus |= 1 then|
|000017d0| 0d 20 20 20 20 20 20 2d | 2d 20 54 68 65 72 65 20 |. -|- There |
|000017e0| 77 65 72 65 20 6d 75 6c | 74 69 70 6c 65 20 61 74 |were mul|tiple at|
|000017f0| 74 65 6d 70 74 73 20 74 | 6f 20 75 73 65 20 74 68 |tempts t|o use th|
|00001800| 65 20 73 61 6d 65 20 62 | 75 64 20 6d 65 74 65 72 |e same b|ud meter|
|00001810| 20 73 6c 6f 74 0d 20 20 | 20 20 20 20 2d 2d 70 75 | slot. | --pu|
|00001820| 74 20 22 4d 65 74 65 72 | 20 73 6c 6f 74 20 69 6e |t "Meter| slot in|
|00001830| 20 75 73 65 22 20 2d 2d | 20 64 65 62 75 67 0d 20 | use" --| debug. |
|00001840| 20 20 20 20 20 72 65 74 | 75 72 6e 20 46 41 4c 53 | ret|urn FALS|
|00001850| 45 0d 20 20 20 20 20 20 | 65 78 69 74 0d 20 20 20 |E. |exit. |
|00001860| 20 65 6e 64 20 69 66 0d | 20 20 20 20 2d 2d 20 74 | end if.| -- t|
|00001870| 68 69 73 20 69 73 20 61 | 20 6e 65 77 20 62 75 64 |his is a| new bud|
|00001880| 20 2d 20 61 20 52 45 41 | 4c 20 73 70 6f 74 74 69 | - a REA|L spotti|
|00001890| 6e 67 0d 20 20 20 20 2d | 2d 20 75 70 64 61 74 65 |ng. -|- update|
|000018a0| 20 74 68 65 20 62 75 64 | 27 73 20 73 74 61 74 75 | the bud|'s statu|
|000018b0| 73 0d 20 20 20 20 64 65 | 6c 65 74 65 41 74 20 62 |s. de|leteAt b|
|000018c0| 75 64 4c 69 73 74 2c 20 | 62 75 64 4f 66 66 73 65 |udList, |budOffse|
|000018d0| 74 0d 20 20 20 20 61 64 | 64 41 74 20 62 75 64 4c |t. ad|dAt budL|
|000018e0| 69 73 74 2c 20 62 75 64 | 4f 66 66 73 65 74 2c 20 |ist, bud|Offset, |
|000018f0| 32 0d 20 20 20 20 2d 2d | 20 75 70 64 61 74 65 20 |2. --| update |
|00001900| 74 68 65 20 6d 65 74 65 | 72 20 6c 69 73 74 0d 20 |the mete|r list. |
|00001910| 20 20 20 64 65 6c 65 74 | 65 41 74 20 62 75 64 4d | delet|eAt budM|
|00001920| 65 74 65 72 4c 69 73 74 | 2c 20 6d 65 74 65 72 4f |eterList|, meterO|
|00001930| 66 66 73 65 74 0d 20 20 | 20 20 61 64 64 41 74 20 |ffset. | addAt |
|00001940| 62 75 64 4d 65 74 65 72 | 4c 69 73 74 2c 20 6d 65 |budMeter|List, me|
|00001950| 74 65 72 4f 66 66 73 65 | 74 2c 20 31 20 20 20 0d |terOffse|t, 1 .|
|00001960| 20 20 20 20 0d 20 20 20 | 20 72 65 74 75 72 6e 20 | . | return |
|00001970| 54 52 55 45 0d 20 20 20 | 20 65 78 69 74 0d 20 20 |TRUE. | exit. |
|00001980| 65 6c 73 65 0d 20 20 20 | 20 2d 2d 20 62 75 64 53 |else. | -- budS|
|00001990| 74 61 74 75 73 20 77 61 | 73 20 6e 6f 74 20 30 2c |tatus wa|s not 0,|
|000019a0| 31 2c 32 0d 20 20 20 20 | 61 6c 65 72 74 20 22 54 |1,2. |alert "T|
|000019b0| 68 65 72 65 20 69 73 20 | 61 6e 20 69 6e 76 61 6c |here is |an inval|
|000019c0| 69 64 20 62 75 64 20 73 | 74 61 74 75 73 20 69 6e |id bud s|tatus in|
|000019d0| 20 27 62 75 64 4c 69 73 | 74 27 21 22 0d 20 20 20 | 'budLis|t'!". |
|000019e0| 20 72 65 74 75 72 6e 20 | 46 41 4c 53 45 0d 20 20 | return |FALSE. |
|000019f0| 20 20 65 78 69 74 0d 20 | 20 65 6e 64 20 69 66 0d | exit. | end if.|
|00001a00| 65 6e 64 20 63 68 65 63 | 6b 42 75 64 0d 0d 0d 6f |end chec|kBud...o|
|00001a10| 6e 20 63 68 65 63 6b 46 | 6f 72 4c 61 73 74 42 75 |n checkF|orLastBu|
|00001a20| 64 0d 20 20 0d 20 20 72 | 65 73 65 74 41 6e 69 6d |d. . r|esetAnim|
|00001a30| 61 74 69 6f 6e 43 75 72 | 73 6f 72 28 29 0d 20 20 |ationCur|sor(). |
|00001a40| 2d 2d 20 43 68 65 63 6b | 20 69 66 20 61 6c 6c 20 |-- Check| if all |
|00001a50| 62 75 64 73 20 68 61 76 | 65 20 62 65 65 64 20 66 |buds hav|e beed f|
|00001a60| 6f 75 6e 64 20 61 6e 64 | 20 70 6c 61 79 20 66 69 |ound and| play fi|
|00001a70| 6e 61 6c 65 20 69 66 20 | 69 74 20 77 61 73 0d 20 |nale if |it was. |
|00001a80| 20 73 65 74 20 64 6f 6e | 65 42 75 64 73 20 3d 20 | set don|eBuds = |
|00001a90| 63 6f 75 6e 74 44 6f 6e | 65 42 75 64 73 28 29 0d |countDon|eBuds().|
|00001aa0| 20 20 69 66 20 64 6f 6e | 65 42 75 64 73 20 3d 20 | if don|eBuds = |
|00001ab0| 36 20 74 68 65 6e 20 20 | 0d 20 20 20 20 64 6f 42 |6 then |. doB|
|00001ac0| 69 67 46 69 6e 61 6c 65 | 28 29 0d 20 20 65 6e 64 |igFinale|(). end|
|00001ad0| 20 69 66 0d 20 20 0d 65 | 6e 64 20 63 68 65 63 6b | if. .e|nd check|
|00001ae0| 46 6f 72 4c 61 73 74 42 | 75 64 0d 0d 0d 6f 6e 20 |ForLastB|ud...on |
|00001af0| 69 6e 69 74 53 68 61 72 | 65 64 43 61 73 74 0d 20 |initShar|edCast. |
|00001b00| 20 2d 2d 20 4e 4f 54 45 | 3a 20 74 68 69 73 20 61 | -- NOTE|: this a|
|00001b10| 73 73 75 6d 65 73 20 74 | 68 61 74 20 74 68 65 20 |ssumes t|hat the |
|00001b20| 52 61 65 20 73 74 61 74 | 75 65 20 67 72 61 70 68 |Rae stat|ue graph|
|00001b30| 69 63 20 69 73 20 69 6e | 20 63 68 61 6e 6e 65 6c |ic is in| channel|
|00001b40| 20 34 35 20 6f 66 20 22 | 35 74 68 41 76 65 22 20 | 45 of "|5thAve" |
|00001b50| 6d 6f 76 69 65 0d 20 20 | 73 65 74 20 52 61 65 53 |movie. |set RaeS|
|00001b60| 74 61 74 75 65 43 68 61 | 6e 20 3d 20 34 35 0d 20 |tatueCha|n = 45. |
|00001b70| 20 0d 20 20 2d 2d 20 54 | 68 69 73 20 61 73 73 75 | . -- T|his assu|
|00001b80| 6d 65 73 20 74 68 61 74 | 20 61 6c 6c 20 6d 6f 76 |mes that| all mov|
|00001b90| 69 65 73 20 75 73 65 20 | 74 68 65 20 74 68 72 65 |ies use |the thre|
|00001ba0| 65 20 68 65 6c 70 20 62 | 75 74 74 6f 6e 73 20 69 |e help b|uttons i|
|00001bb0| 6e 20 63 68 61 6e 6e 65 | 6c 73 20 34 36 2d 34 38 |n channe|ls 46-48|
|00001bc0| 0d 20 20 73 65 74 20 47 | 75 73 50 75 7a 7a 6c 65 |. set G|usPuzzle|
|00001bd0| 48 65 6c 70 43 68 61 6e | 20 3d 20 34 36 0d 20 20 |HelpChan| = 46. |
|00001be0| 73 65 74 20 42 75 64 4d | 65 74 65 72 48 65 6c 70 |set BudM|eterHelp|
|00001bf0| 43 68 61 6e 20 20 3d 20 | 34 37 0d 20 20 73 65 74 |Chan = |47. set|
|00001c00| 20 47 75 73 48 65 6c 70 | 48 65 61 64 43 68 61 6e | GusHelp|HeadChan|
|00001c10| 20 20 3d 20 34 38 0d 20 | 20 0d 20 20 69 66 20 74 | = 48. | . if t|
|00001c20| 68 65 20 6d 61 63 68 69 | 6e 65 54 79 70 65 20 3d |he machi|neType =|
|00001c30| 20 32 35 36 20 74 68 65 | 6e 0d 20 20 20 20 70 75 | 256 the|n. pu|
|00001c40| 74 20 22 5c 22 20 69 6e | 74 6f 20 66 69 6c 65 53 |t "\" in|to fileS|
|00001c50| 65 70 0d 20 20 65 6c 73 | 65 0d 20 20 20 20 70 75 |ep. els|e. pu|
|00001c60| 74 20 22 3a 22 20 69 6e | 74 6f 20 66 69 6c 65 53 |t ":" in|to fileS|
|00001c70| 65 70 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 69 66 |ep. end| if. if|
|00001c80| 20 6e 6f 74 20 69 6e 74 | 65 67 65 72 50 20 28 72 | not int|egerP (r|
|00001c90| 61 6e 64 6f 6d 52 61 65 | 29 20 6f 72 20 28 72 61 |andomRae|) or (ra|
|00001ca0| 6e 64 6f 6d 52 61 65 20 | 3c 20 31 29 20 6f 72 20 |ndomRae |< 1) or |
|00001cb0| 28 72 61 6e 64 6f 6d 52 | 61 65 20 3e 20 35 29 20 |(randomR|ae > 5) |
|00001cc0| 74 68 65 6e 0d 20 20 20 | 20 70 75 74 20 72 61 6e |then. | put ran|
|00001cd0| 64 6f 6d 28 35 29 20 69 | 6e 74 6f 20 72 61 6e 64 |dom(5) i|nto rand|
|00001ce0| 6f 6d 52 61 65 0d 20 20 | 65 6e 64 20 69 66 0d 20 |omRae. |end if. |
|00001cf0| 20 0d 65 6e 64 20 69 6e | 69 74 53 68 61 72 65 64 | .end in|itShared|
|00001d00| 43 61 73 74 0d 0d 6f 6e | 20 6b 69 6c 6c 53 6f 75 |Cast..on| killSou|
|00001d10| 6e 64 73 0d 20 20 0d 20 | 20 77 68 65 6e 20 6d 6f |nds. . | when mo|
|00001d20| 75 73 65 44 6f 77 6e 20 | 74 68 65 6e 20 6e 6f 74 |useDown |then not|
|00001d30| 68 69 6e 67 0d 20 20 0d | 20 20 73 6f 75 6e 64 20 |hing. .| sound |
|00001d40| 63 6c 6f 73 65 20 31 0d | 20 20 73 6f 75 6e 64 20 |close 1.| sound |
|00001d50| 63 6c 6f 73 65 20 32 0d | 20 20 0d 20 20 0d 20 20 |close 2.| . . |
|00001d60| 0d 65 6e 64 20 6b 69 6c | 6c 53 6f 75 6e 64 73 0d |.end kil|lSounds.|
|00001d70| 0d 0d 6f 6e 20 6d 6f 64 | 61 6c 48 65 6c 70 0d 20 |..on mod|alHelp. |
|00001d80| 20 67 6c 6f 62 61 6c 20 | 70 72 65 48 65 6c 70 4d | global |preHelpM|
|00001d90| 6f 75 73 65 44 6f 77 6e | 53 63 72 69 70 74 0d 20 |ouseDown|Script. |
|00001da0| 20 0d 20 20 0d 20 20 2d | 2d 20 46 6f 72 63 65 20 | . . -|- Force |
|00001db0| 75 73 65 72 20 74 6f 20 | 63 6c 69 63 6b 20 68 65 |user to |click he|
|00001dc0| 6c 70 20 6f 72 20 62 75 | 64 6d 65 74 65 72 20 70 |lp or bu|dmeter p|
|00001dd0| 75 7a 7a 6c 65 20 62 75 | 74 74 6f 6e 73 0d 20 20 |uzzle bu|ttons. |
|00001de0| 69 66 20 28 74 68 65 20 | 63 6c 69 63 6b 4f 6e 20 |if (the |clickOn |
|00001df0| 3c 3e 20 47 75 73 50 75 | 7a 7a 6c 65 48 65 6c 70 |<> GusPu|zzleHelp|
|00001e00| 43 68 61 6e 29 20 61 6e | 64 20 28 74 68 65 20 63 |Chan) an|d (the c|
|00001e10| 6c 69 63 6b 4f 6e 20 3c | 3e 20 42 75 64 4d 65 74 |lickOn <|> BudMet|
|00001e20| 65 72 48 65 6c 70 43 68 | 61 6e 29 20 74 68 65 6e |erHelpCh|an) then|
|00001e30| 0d 20 20 20 20 72 65 76 | 65 72 74 48 65 6c 70 42 |. rev|ertHelpB|
|00001e40| 75 74 74 6f 6e 73 28 29 | 0d 20 20 65 6c 73 65 0d |uttons()|. else.|
|00001e50| 20 20 20 20 6b 69 6c 6c | 53 6f 75 6e 64 73 28 29 | kill|Sounds()|
|00001e60| 0d 20 20 65 6e 64 20 69 | 66 0d 20 20 0d 20 20 2d |. end i|f. . -|
|00001e70| 2d 20 43 61 6c 6c 69 6e | 67 20 72 6f 75 74 69 6e |- Callin|g routin|
|00001e80| 65 20 69 73 20 72 65 70 | 73 6f 6e 73 69 62 6c 65 |e is rep|sonsible|
|00001e90| 20 66 6f 72 20 72 65 73 | 65 74 74 69 6e 67 20 6d | for res|etting m|
|00001ea0| 6f 75 73 65 44 6f 77 6e | 53 63 72 69 70 74 20 2d |ouseDown|Script -|
|00001eb0| 20 28 44 61 6e 67 65 72 | 6f 75 73 29 0d 20 20 2d | (Danger|ous). -|
|00001ec0| 2d 20 52 65 73 74 6f 72 | 65 20 74 68 65 20 6f 6c |- Restor|e the ol|
|00001ed0| 64 20 6d 6f 75 73 65 44 | 6f 77 6e 53 63 72 69 70 |d mouseD|ownScrip|
|00001ee0| 74 0d 20 20 2d 2d 20 20 | 73 65 74 20 74 68 65 20 |t. -- |set the |
|00001ef0| 6d 6f 75 73 65 44 6f 77 | 6e 53 63 72 69 70 74 20 |mouseDow|nScript |
|00001f00| 3d 20 70 72 65 48 65 6c | 70 4d 6f 75 73 65 44 6f |= preHel|pMouseDo|
|00001f10| 77 6e 53 63 72 69 70 74 | 0d 20 20 77 68 65 6e 20 |wnScript|. when |
|00001f20| 6d 6f 75 73 65 44 6f 77 | 6e 20 74 68 65 6e 20 6b |mouseDow|n then k|
|00001f30| 69 6c 6c 53 6f 75 6e 64 | 73 28 29 0d 65 6e 64 20 |illSound|s().end |
|00001f40| 6d 6f 64 61 6c 48 65 6c | 70 0d 0d 0d 6f 6e 20 68 |modalHel|p...on h|
|00001f50| 65 6c 70 20 77 68 69 63 | 68 53 6f 75 6e 64 0d 20 |elp whic|hSound. |
|00001f60| 20 2d 2d 20 20 67 6c 6f | 62 61 6c 20 70 72 65 48 | -- glo|bal preH|
|00001f70| 65 6c 70 4d 6f 75 73 65 | 44 6f 77 6e 53 63 72 69 |elpMouse|DownScri|
|00001f80| 70 74 0d 20 20 2d 2d 20 | 20 0d 20 20 2d 2d 20 20 |pt. -- | . -- |
|00001f90| 2d 2d 20 53 61 76 65 20 | 74 68 65 20 6f 6c 64 20 |-- Save |the old |
|00001fa0| 6d 6f 75 73 65 44 6f 77 | 6e 53 63 72 69 70 74 0d |mouseDow|nScript.|
|00001fb0| 20 20 2d 2d 20 20 73 65 | 74 20 70 72 65 48 65 6c | -- se|t preHel|
|00001fc0| 70 4d 6f 75 73 65 44 6f | 77 6e 53 63 72 69 70 74 |pMouseDo|wnScript|
|00001fd0| 20 3d 20 74 68 65 20 6d | 6f 75 73 65 44 6f 77 6e | = the m|ouseDown|
|00001fe0| 53 63 72 69 70 74 0d 20 | 20 2d 2d 20 20 0d 20 20 |Script. | -- . |
|00001ff0| 2d 2d 20 46 6f 72 63 65 | 20 72 65 73 70 6f 6e 73 |-- Force| respons|
|00002000| 65 20 74 6f 20 68 65 6c | 70 0d 20 20 2d 2d 20 20 |e to hel|p. -- |
|00002010| 77 68 65 6e 20 6d 6f 75 | 73 65 44 6f 77 6e 20 74 |when mou|seDown t|
|00002020| 68 65 6e 20 6d 6f 64 61 | 6c 48 65 6c 70 28 29 0d |hen moda|lHelp().|
|00002030| 20 20 2d 2d 20 20 0d 20 | 20 2d 2d 20 20 70 75 70 | -- . | -- pup|
|00002040| 70 65 74 53 70 72 69 74 | 65 20 47 75 73 50 75 7a |petSprit|e GusPuz|
|00002050| 7a 6c 65 48 65 6c 70 43 | 68 61 6e 2c 20 54 52 55 |zleHelpC|han, TRU|
|00002060| 45 0d 20 20 2d 2d 20 20 | 70 75 70 70 65 74 53 70 |E. -- |puppetSp|
|00002070| 72 69 74 65 20 42 75 64 | 4d 65 74 65 72 48 65 6c |rite Bud|MeterHel|
|00002080| 70 43 68 61 6e 2c 20 20 | 54 52 55 45 0d 20 20 2d |pChan, |TRUE. -|
|00002090| 2d 20 20 70 75 70 70 65 | 74 53 70 72 69 74 65 20 |- puppe|tSprite |
|000020a0| 47 75 73 48 65 6c 70 48 | 65 61 64 43 68 61 6e 20 |GusHelpH|eadChan |
|000020b0| 2c 20 54 52 55 45 0d 20 | 20 70 75 74 20 77 68 69 |, TRUE. | put whi|
|000020c0| 63 68 53 6f 75 6e 64 20 | 69 6e 74 6f 20 68 65 6c |chSound |into hel|
|000020d0| 70 53 6f 75 6e 64 0d 20 | 20 2d 2d 20 20 73 65 74 |pSound. | -- set|
|000020e0| 20 74 68 65 20 63 61 73 | 74 4e 75 6d 20 6f 66 20 | the cas|tNum of |
|000020f0| 73 70 72 69 74 65 20 47 | 75 73 50 75 7a 7a 6c 65 |sprite G|usPuzzle|
|00002100| 48 65 6c 70 43 68 61 6e | 20 3d 20 74 68 65 20 6e |HelpChan| = the n|
|00002110| 75 6d 62 65 72 20 6f 66 | 20 63 61 73 74 20 22 48 |umber of| cast "H|
|00002120| 65 6c 70 42 75 74 74 6f | 6e 22 0d 20 20 2d 2d 20 |elpButto|n". -- |
|00002130| 20 73 65 74 20 74 68 65 | 20 63 61 73 74 4e 75 6d | set the| castNum|
|00002140| 20 6f 66 20 73 70 72 69 | 74 65 20 42 75 64 4d 65 | of spri|te BudMe|
|00002150| 74 65 72 48 65 6c 70 43 | 68 61 6e 20 20 3d 20 74 |terHelpC|han = t|
|00002160| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 61 73 |he numbe|r of cas|
|00002170| 74 20 22 42 75 64 4d 65 | 74 65 72 42 75 74 74 6f |t "BudMe|terButto|
|00002180| 6e 22 0d 20 20 2d 2d 20 | 20 73 65 74 20 74 68 65 |n". -- | set the|
|00002190| 20 63 61 73 74 4e 75 6d | 20 6f 66 20 73 70 72 69 | castNum| of spri|
|000021a0| 74 65 20 47 75 73 48 65 | 6c 70 48 65 61 64 43 68 |te GusHe|lpHeadCh|
|000021b0| 61 6e 20 20 3d 20 74 68 | 65 20 6e 75 6d 62 65 72 |an = th|e number|
|000021c0| 20 6f 66 20 63 61 73 74 | 20 22 48 65 6c 70 44 6f | of cast| "HelpDo|
|000021d0| 74 22 0d 20 20 2d 2d 20 | 20 75 70 64 61 74 65 53 |t". -- | updateS|
|000021e0| 74 61 67 65 0d 20 20 68 | 65 6c 70 41 75 64 69 6f |tage. h|elpAudio|
|000021f0| 28 29 0d 20 20 0d 20 20 | 0d 65 6e 64 20 68 65 6c |(). . |.end hel|
|00002200| 70 0d 0d 6f 6e 20 68 65 | 6c 70 41 75 64 69 6f 0d |p..on he|lpAudio.|
|00002210| 20 20 0d 20 20 2d 2d 20 | 57 61 69 74 20 66 6f 72 | . -- |Wait for|
|00002220| 20 73 74 69 63 6b 79 20 | 6d 6f 75 73 65 20 6f 6e | sticky |mouse on|
|00002230| 20 49 42 4d 20 50 43 73 | 0d 20 20 72 65 70 65 61 | IBM PCs|. repea|
|00002240| 74 20 77 68 69 6c 65 20 | 28 74 68 65 20 73 74 69 |t while |(the sti|
|00002250| 6c 6c 44 6f 77 6e 29 20 | 6f 72 20 28 74 68 65 20 |llDown) |or (the |
|00002260| 6d 6f 75 73 65 44 6f 77 | 6e 29 0d 20 20 20 20 6e |mouseDow|n). n|
|00002270| 6f 74 68 69 6e 67 0d 20 | 20 65 6e 64 20 72 65 70 |othing. | end rep|
|00002280| 65 61 74 0d 20 20 0d 20 | 20 2d 2d 20 72 65 76 65 |eat. . | -- reve|
|00002290| 72 74 48 65 6c 70 42 75 | 74 74 6f 6e 73 28 29 0d |rtHelpBu|ttons().|
|000022a0| 20 20 0d 20 20 73 6f 75 | 6e 64 20 70 6c 61 79 46 | . sou|nd playF|
|000022b0| 69 6c 65 20 32 2c 20 74 | 68 65 20 70 61 74 68 6e |ile 2, t|he pathn|
|000022c0| 61 6d 65 20 26 20 22 64 | 61 75 64 69 6f 22 20 26 |ame & "d|audio" &|
|000022d0| 20 66 69 6c 65 53 65 70 | 20 26 20 68 65 6c 70 53 | fileSep| & helpS|
|000022e0| 6f 75 6e 64 0d 20 20 0d | 20 20 72 65 70 65 61 74 |ound. .| repeat|
|000022f0| 20 77 68 69 6c 65 20 73 | 6f 75 6e 64 42 75 73 79 | while s|oundBusy|
|00002300| 28 32 29 0d 20 20 20 20 | 0d 20 20 20 20 69 66 20 |(2). |. if |
|00002310| 74 68 65 20 6d 6f 75 73 | 65 44 6f 77 6e 20 74 68 |the mous|eDown th|
|00002320| 65 6e 0d 20 20 20 20 20 | 20 73 6f 75 6e 64 20 63 |en. | sound c|
|00002330| 6c 6f 73 65 20 32 0d 20 | 20 20 20 65 6e 64 20 69 |lose 2. | end i|
|00002340| 66 0d 20 20 20 20 0d 20 | 20 65 6e 64 20 72 65 70 |f. . | end rep|
|00002350| 65 61 74 0d 20 20 0d 65 | 6e 64 20 68 65 6c 70 41 |eat. .e|nd helpA|
|00002360| 75 64 69 6f 0d 0d 6f 6e | 20 64 65 6d 6f 48 65 6c |udio..on| demoHel|
|00002370| 70 0d 20 20 67 6c 6f 62 | 61 6c 20 66 69 6c 65 53 |p. glob|al fileS|
|00002380| 65 70 0d 20 20 73 6f 75 | 6e 64 20 73 74 6f 70 20 |ep. sou|nd stop |
|00002390| 32 0d 20 20 73 6f 75 6e | 64 20 70 6c 61 79 46 69 |2. soun|d playFi|
|000023a0| 6c 65 20 32 2c 20 74 68 | 65 20 70 61 74 68 6e 61 |le 2, th|e pathna|
|000023b0| 6d 65 20 26 20 22 44 61 | 75 64 69 6f 22 20 26 20 |me & "Da|udio" & |
|000023c0| 66 69 6c 65 53 65 70 20 | 26 20 22 48 45 4c 50 22 |fileSep |& "HELP"|
|000023d0| 0d 65 6e 64 20 64 65 6d | 6f 48 65 6c 70 0d 0d 6f |.end dem|oHelp..o|
|000023e0| 6e 20 73 6f 72 72 79 4d | 65 73 73 61 67 65 0d 20 |n sorryM|essage. |
|000023f0| 20 67 6c 6f 62 61 6c 20 | 66 69 6c 65 53 65 70 0d | global |fileSep.|
|00002400| 20 20 73 6f 75 6e 64 20 | 70 6c 61 79 46 69 6c 65 | sound |playFile|
|00002410| 20 31 2c 20 74 68 65 20 | 70 61 74 68 4e 61 6d 65 | 1, the |pathName|
|00002420| 20 26 20 22 44 61 75 64 | 69 6f 22 20 26 20 66 69 | & "Daud|io" & fi|
|00002430| 6c 65 53 65 70 20 26 20 | 22 53 6f 72 72 79 2e 61 |leSep & |"Sorry.a|
|00002440| 69 66 22 0d 20 20 67 6f | 20 74 6f 20 22 53 6f 72 |if". go| to "Sor|
|00002450| 72 79 22 0d 20 20 0d 65 | 6e 64 20 73 6f 72 72 79 |ry". .e|nd sorry|
|00002460| 4d 65 73 73 61 67 65 0d | 0d 0d 6f 6e 20 73 65 74 |Message.|..on set|
|00002470| 56 6f 6c 75 6d 65 0d 20 | 20 73 65 74 20 6d 79 4b |Volume. | set myK|
|00002480| 65 79 20 3d 20 69 6e 74 | 65 67 65 72 20 28 74 68 |ey = int|eger (th|
|00002490| 65 20 6b 65 79 29 0d 20 | 20 0d 20 20 69 66 20 6d |e key). | . if m|
|000024a0| 79 4b 65 79 20 3e 3d 20 | 31 20 61 6e 64 20 6d 79 |yKey >= |1 and my|
|000024b0| 4b 65 79 20 3c 3d 20 37 | 20 74 68 65 6e 0d 20 20 |Key <= 7| then. |
|000024c0| 20 20 73 65 74 20 74 68 | 65 20 73 6f 75 6e 64 4c | set th|e soundL|
|000024d0| 65 76 65 6c 20 3d 20 6d | 79 4b 65 79 0d 20 20 65 |evel = m|yKey. e|
|000024e0| 6e 64 20 69 66 0d 20 20 | 0d 65 6e 64 20 73 65 74 |nd if. |.end set|
|000024f0| 56 6f 6c 75 6d 65 0d 0d | 0d 6f 6e 20 72 65 76 65 |Volume..|.on reve|
|00002500| 72 74 48 65 6c 70 42 75 | 74 74 6f 6e 73 0d 20 20 |rtHelpBu|ttons. |
|00002510| 2d 2d 20 43 68 61 6e 67 | 65 20 74 68 65 20 68 65 |-- Chang|e the he|
|00002520| 6c 70 2f 62 75 64 4d 65 | 74 65 72 20 62 75 74 74 |lp/budMe|ter butt|
|00002530| 6f 6e 20 62 61 63 6b 20 | 74 6f 20 74 68 65 69 72 |on back |to their|
|00002540| 20 6f 72 69 67 69 6e 61 | 6c 20 73 74 61 72 74 0d | origina|l start.|
|00002550| 20 20 70 75 70 70 65 74 | 53 70 72 69 74 65 20 47 | puppet|Sprite G|
|00002560| 75 73 50 75 7a 7a 6c 65 | 48 65 6c 70 43 68 61 6e |usPuzzle|HelpChan|
|00002570| 2c 20 46 41 4c 53 45 0d | 20 20 70 75 70 70 65 74 |, FALSE.| puppet|
|00002580| 53 70 72 69 74 65 20 42 | 75 64 4d 65 74 65 72 48 |Sprite B|udMeterH|
|00002590| 65 6c 70 43 68 61 6e 20 | 2c 20 46 41 4c 53 45 0d |elpChan |, FALSE.|
|000025a0| 20 20 70 75 70 70 65 74 | 53 70 72 69 74 65 20 47 | puppet|Sprite G|
|000025b0| 75 73 48 65 6c 70 48 65 | 61 64 43 68 61 6e 20 2c |usHelpHe|adChan ,|
|000025c0| 20 46 41 4c 53 45 0d 20 | 20 73 65 74 20 74 68 65 | FALSE. | set the|
|000025d0| 20 63 61 73 74 4e 75 6d | 20 6f 66 20 73 70 72 69 | castNum| of spri|
|000025e0| 74 65 20 47 75 73 50 75 | 7a 7a 6c 65 48 65 6c 70 |te GusPu|zzleHelp|
|000025f0| 43 68 61 6e 20 3d 20 74 | 68 65 20 6e 75 6d 62 65 |Chan = t|he numbe|
|00002600| 72 20 6f 66 20 63 61 73 | 74 20 22 48 65 6c 70 44 |r of cas|t "HelpD|
|00002610| 6f 74 22 0d 20 20 73 65 | 74 20 74 68 65 20 63 61 |ot". se|t the ca|
|00002620| 73 74 4e 75 6d 20 6f 66 | 20 73 70 72 69 74 65 20 |stNum of| sprite |
|00002630| 42 75 64 4d 65 74 65 72 | 48 65 6c 70 43 68 61 6e |BudMeter|HelpChan|
|00002640| 20 20 3d 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | = the |number o|
|00002650| 66 20 63 61 73 74 20 22 | 48 65 6c 70 44 6f 74 22 |f cast "|HelpDot"|
|00002660| 0d 20 20 73 65 74 20 74 | 68 65 20 63 61 73 74 4e |. set t|he castN|
|00002670| 75 6d 20 6f 66 20 73 70 | 72 69 74 65 20 47 75 73 |um of sp|rite Gus|
|00002680| 48 65 6c 70 48 65 61 64 | 43 68 61 6e 20 20 3d 20 |HelpHead|Chan = |
|00002690| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 61 |the numb|er of ca|
|000026a0| 73 74 20 22 48 65 6c 70 | 22 0d 20 20 75 70 64 61 |st "Help|". upda|
|000026b0| 74 65 53 74 61 67 65 0d | 20 20 0d 65 6e 64 20 72 |teStage.| .end r|
|000026c0| 65 76 65 72 74 48 65 6c | 70 42 75 74 74 6f 6e 73 |evertHel|pButtons|
|000026d0| 0d 0d 0d 6f 6e 20 62 75 | 64 4d 65 74 65 72 0d 20 |...on bu|dMeter. |
|000026e0| 20 0d 20 20 70 75 70 70 | 65 74 53 70 72 69 74 65 | . pupp|etSprite|
|000026f0| 20 47 75 73 50 75 7a 7a | 6c 65 48 65 6c 70 43 68 | GusPuzz|leHelpCh|
|00002700| 61 6e 2c 20 46 41 4c 53 | 45 0d 20 20 70 75 70 70 |an, FALS|E. pupp|
|00002710| 65 74 53 70 72 69 74 65 | 20 42 75 64 4d 65 74 65 |etSprite| BudMete|
|00002720| 72 48 65 6c 70 43 68 61 | 6e 20 2c 20 46 41 4c 53 |rHelpCha|n , FALS|
|00002730| 45 0d 20 20 70 75 70 70 | 65 74 53 70 72 69 74 65 |E. pupp|etSprite|
|00002740| 20 47 75 73 48 65 6c 70 | 48 65 61 64 43 68 61 6e | GusHelp|HeadChan|
|00002750| 20 2c 20 46 41 4c 53 45 | 0d 20 20 73 65 74 20 74 | , FALSE|. set t|
|00002760| 68 65 20 63 61 73 74 4e | 75 6d 20 6f 66 20 73 70 |he castN|um of sp|
|00002770| 72 69 74 65 20 47 75 73 | 50 75 7a 7a 6c 65 48 65 |rite Gus|PuzzleHe|
|00002780| 6c 70 43 68 61 6e 20 3d | 20 74 68 65 20 6e 75 6d |lpChan =| the num|
|00002790| 62 65 72 20 6f 66 20 63 | 61 73 74 20 22 48 65 6c |ber of c|ast "Hel|
|000027a0| 70 44 6f 74 22 0d 20 20 | 73 65 74 20 74 68 65 20 |pDot". |set the |
|000027b0| 63 61 73 74 4e 75 6d 20 | 6f 66 20 73 70 72 69 74 |castNum |of sprit|
|000027c0| 65 20 42 75 64 4d 65 74 | 65 72 48 65 6c 70 43 68 |e BudMet|erHelpCh|
|000027d0| 61 6e 20 20 3d 20 74 68 | 65 20 6e 75 6d 62 65 72 |an = th|e number|
|000027e0| 20 6f 66 20 63 61 73 74 | 20 22 48 65 6c 70 44 6f | of cast| "HelpDo|
|000027f0| 74 22 0d 20 20 73 65 74 | 20 74 68 65 20 63 61 73 |t". set| the cas|
|00002800| 74 4e 75 6d 20 6f 66 20 | 73 70 72 69 74 65 20 47 |tNum of |sprite G|
|00002810| 75 73 48 65 6c 70 48 65 | 61 64 43 68 61 6e 20 20 |usHelpHe|adChan |
|00002820| 3d 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |= the nu|mber of |
|00002830| 63 61 73 74 20 22 48 65 | 6c 70 22 0d 20 20 75 70 |cast "He|lp". up|
|00002840| 64 61 74 65 53 74 61 67 | 65 0d 20 20 0d 20 20 63 |dateStag|e. . c|
|00002850| 75 72 73 6f 72 20 34 0d | 20 20 6f 70 65 6e 4d 49 |ursor 4.| openMI|
|00002860| 41 57 20 28 22 42 75 64 | 4d 65 74 65 72 22 29 0d |AW ("Bud|Meter").|
|00002870| 20 20 0d 20 20 0d 65 6e | 64 20 62 75 64 4d 65 74 | . .en|d budMet|
|00002880| 65 72 0d 0d 2d 2d 20 54 | 68 69 73 20 63 61 75 73 |er..-- T|his caus|
|00002890| 65 73 20 74 68 65 20 62 | 75 64 6d 65 74 65 72 20 |es the b|udmeter |
|000028a0| 74 6f 20 63 6c 6f 73 65 | 20 69 6d 6d 65 64 69 61 |to close| immedia|
|000028b0| 74 65 6c 79 20 77 68 65 | 6e 20 69 74 20 69 73 20 |tely whe|n it is |
|000028c0| 6f 70 65 6e 65 64 3f 0d | 2d 2d 20 77 68 79 20 69 |opened?.|-- why i|
|000028d0| 73 20 69 74 20 62 65 69 | 6e 67 20 63 61 6c 6c 65 |s it bei|ng calle|
|000028e0| 64 20 61 74 20 61 6c 6c | 3f 0d 2d 2d 6f 6e 20 61 |d at all|?.--on a|
|000028f0| 63 74 69 76 61 74 65 57 | 69 6e 64 6f 77 0d 2d 2d |ctivateW|indow.--|
|00002900| 20 20 70 75 74 20 63 6f | 75 6e 74 28 74 68 65 20 | put co|unt(the |
|00002910| 77 69 6e 64 6f 77 4c 69 | 73 74 29 20 69 6e 74 6f |windowLi|st) into|
|00002920| 20 77 69 6e 64 6f 77 73 | 0d 2d 2d 20 20 72 65 70 | windows|.-- rep|
|00002930| 65 61 74 20 77 69 74 68 | 20 78 20 3d 20 31 20 74 |eat with| x = 1 t|
|00002940| 6f 20 77 69 6e 64 6f 77 | 73 0d 2d 2d 20 20 20 20 |o window|s.-- |
|00002950| 2d 2d 20 74 68 65 20 77 | 69 6e 64 6f 77 4c 69 73 |-- the w|indowLis|
|00002960| 74 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 77 |t contai|ns the w|
|00002970| 6f 72 64 20 22 77 69 6e | 64 6f 77 22 20 69 6e 20 |ord "win|dow" in |
|00002980| 66 72 6f 6e 74 20 6f 66 | 20 74 68 65 20 77 69 6e |front of| the win|
|00002990| 64 6f 77 20 6e 61 6d 65 | 0d 2d 2d 20 20 20 20 66 |dow name|.-- f|
|000029a0| 6f 72 67 65 74 20 67 65 | 74 41 74 28 74 68 65 20 |orget ge|tAt(the |
|000029b0| 77 69 6e 64 6f 77 4c 69 | 73 74 2c 20 78 29 0d 2d |windowLi|st, x).-|
|000029c0| 2d 20 20 65 6e 64 20 72 | 65 70 65 61 74 0d 2d 2d |- end r|epeat.--|
|000029d0| 65 6e 64 20 61 63 74 69 | 76 61 74 65 57 69 6e 64 |end acti|vateWind|
|000029e0| 6f 77 0d 0d 6f 6e 20 63 | 6c 6f 73 65 4d 65 74 65 |ow..on c|loseMete|
|000029f0| 72 0d 20 20 0d 20 20 2d | 2d 20 54 68 65 20 62 75 |r. . -|- The bu|
|00002a00| 64 4d 65 74 65 72 57 69 | 6e 64 6f 77 20 73 68 6f |dMeterWi|ndow sho|
|00002a10| 75 6c 64 20 61 6c 77 61 | 79 73 20 62 65 20 77 69 |uld alwa|ys be wi|
|00002a20| 6e 64 6f 77 20 31 0d 20 | 20 2d 2d 20 74 68 65 20 |ndow 1. | -- the |
|00002a30| 77 69 6e 64 6f 77 4c 69 | 73 74 20 63 6f 6e 74 61 |windowLi|st conta|
|00002a40| 69 6e 73 20 74 68 65 20 | 77 6f 72 64 20 22 77 69 |ins the |word "wi|
|00002a50| 6e 64 6f 77 22 20 69 6e | 20 66 72 6f 6e 74 20 6f |ndow" in| front o|
|00002a60| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 6e 61 6d |f the wi|ndow nam|
|00002a70| 65 0d 20 20 73 65 74 20 | 6d 79 57 69 6e 64 6f 77 |e. set |myWindow|
|00002a80| 20 3d 20 67 65 74 41 74 | 20 28 74 68 65 20 77 69 | = getAt| (the wi|
|00002a90| 6e 64 6f 77 4c 69 73 74 | 2c 20 31 29 0d 20 20 0d |ndowList|, 1). .|
|00002aa0| 20 20 2d 2d 20 20 73 65 | 74 20 74 68 65 20 76 69 | -- se|t the vi|
|00002ab0| 73 69 62 69 6c 69 74 79 | 20 6f 66 20 6d 79 57 69 |sibility| of myWi|
|00002ac0| 6e 64 6f 77 20 3d 20 46 | 41 4c 53 45 0d 20 20 2d |ndow = F|ALSE. -|
|00002ad0| 2d 20 20 2d 2d 20 6d 6f | 76 65 54 6f 42 61 63 6b |- -- mo|veToBack|
|00002ae0| 20 6d 79 57 69 6e 64 6f | 77 0d 20 20 2d 2d 20 20 | myWindo|w. -- |
|00002af0| 2d 2d 20 6c 2c 20 74 2c | 20 72 2c 20 62 0d 20 20 |-- l, t,| r, b. |
|00002b00| 2d 2d 20 20 73 65 74 20 | 74 68 65 20 64 72 61 77 |-- set |the draw|
|00002b10| 52 65 63 74 20 6f 66 20 | 6d 79 57 69 6e 64 6f 77 |Rect of |myWindow|
|00002b20| 20 3d 20 72 65 63 74 20 | 28 2d 35 30 30 2c 20 2d | = rect |(-500, -|
|00002b30| 35 30 30 2c 20 2d 35 30 | 30 2b 34 31 36 2c 20 2d |500, -50|0+416, -|
|00002b40| 35 30 30 2b 33 32 36 29 | 0d 20 20 2d 2d 0d 20 20 |500+326)|. --. |
|00002b50| 0d 20 20 66 6f 72 67 65 | 74 20 6d 79 57 69 6e 64 |. forge|t myWind|
|00002b60| 6f 77 0d 20 20 75 70 64 | 61 74 65 53 74 61 67 65 |ow. upd|ateStage|
|00002b70| 0d 20 20 2d 2d 20 20 70 | 75 74 20 63 6f 75 6e 74 |. -- p|ut count|
|00002b80| 28 74 68 65 20 77 69 6e | 64 6f 77 4c 69 73 74 29 |(the win|dowList)|
|00002b90| 20 69 6e 74 6f 20 77 69 | 6e 64 6f 77 73 0d 20 20 | into wi|ndows. |
|00002ba0| 2d 2d 20 20 72 65 70 65 | 61 74 20 77 69 74 68 20 |-- repe|at with |
|00002bb0| 78 20 3d 20 31 20 74 6f | 20 77 69 6e 64 6f 77 73 |x = 1 to| windows|
|00002bc0| 0d 20 20 2d 2d 20 20 20 | 20 2d 2d 20 74 68 65 20 |. -- | -- the |
|00002bd0| 77 69 6e 64 6f 77 4c 69 | 73 74 20 63 6f 6e 74 61 |windowLi|st conta|
|00002be0| 69 6e 73 20 74 68 65 20 | 77 6f 72 64 20 22 77 69 |ins the |word "wi|
|00002bf0| 6e 64 6f 77 22 20 69 6e | 20 66 72 6f 6e 74 20 6f |ndow" in| front o|
|00002c00| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 6e 61 6d |f the wi|ndow nam|
|00002c10| 65 0d 20 20 2d 2d 20 20 | 20 20 66 6f 72 67 65 74 |e. -- | forget|
|00002c20| 20 67 65 74 41 74 28 74 | 68 65 20 77 69 6e 64 6f | getAt(t|he windo|
|00002c30| 77 4c 69 73 74 2c 20 78 | 29 0d 20 20 2d 2d 20 20 |wList, x|). -- |
|00002c40| 65 6e 64 20 72 65 70 65 | 61 74 0d 20 20 0d 20 20 |end repe|at. . |
|00002c50| 2d 2d 20 20 0d 20 20 2d | 2d 20 20 73 65 74 20 74 |-- . -|- set t|
|00002c60| 68 65 20 77 69 6e 64 6f | 77 6c 69 73 74 20 3d 20 |he windo|wlist = |
|00002c70| 5b 5d 0d 20 20 2d 2d 20 | 20 0d 20 20 70 75 70 70 |[]. -- | . pupp|
|00002c80| 65 74 53 6f 75 6e 64 20 | 30 0d 20 20 73 6f 75 6e |etSound |0. soun|
|00002c90| 64 20 63 6c 6f 73 65 20 | 31 0d 20 20 73 6f 75 6e |d close |1. soun|
|00002ca0| 64 20 63 6c 6f 73 65 20 | 32 0d 20 20 2d 2d 20 75 |d close |2. -- u|
|00002cb0| 70 64 61 74 65 53 74 61 | 67 65 0d 20 20 0d 20 20 |pdateSta|ge. . |
|00002cc0| 2d 2d 20 49 66 20 77 65 | 20 74 65 6c 6c 20 74 68 |-- If we| tell th|
|00002cd0| 65 20 73 74 61 67 65 20 | 74 6f 20 6d 6f 76 65 54 |e stage |to moveT|
|00002ce0| 6f 46 72 6f 6e 74 2c 20 | 69 74 20 64 69 73 61 62 |oFront, |it disab|
|00002cf0| 6c 65 73 20 70 61 6c 65 | 74 74 65 73 20 61 6e 64 |les pale|ttes and|
|00002d00| 20 74 72 61 6e 73 69 74 | 69 6f 6e 73 0d 20 20 2d | transit|ions. -|
|00002d10| 2d 20 57 65 27 6c 6c 20 | 6a 75 73 74 20 61 73 73 |- We'll |just ass|
|00002d20| 75 6d 65 20 69 72 20 72 | 65 74 75 72 6e 73 20 74 |ume ir r|eturns t|
|00002d30| 6f 20 74 68 65 20 70 61 | 72 65 6e 74 20 77 69 6e |o the pa|rent win|
|00002d40| 64 6f 77 20 77 68 65 6e | 20 74 68 65 20 4d 49 41 |dow when| the MIA|
|00002d50| 57 20 63 6c 6f 73 65 73 | 0d 20 20 2d 2d 20 6d 6f |W closes|. -- mo|
|00002d60| 76 65 54 6f 46 72 6f 6e | 74 20 74 68 65 20 73 74 |veToFron|t the st|
|00002d70| 61 67 65 0d 20 20 0d 20 | 20 2d 2d 20 61 63 74 69 |age. . | -- acti|
|00002d80| 76 61 74 65 57 69 6e 64 | 6f 77 0d 65 6e 64 20 63 |vateWind|ow.end c|
|00002d90| 6c 6f 73 65 4d 65 74 65 | 72 0d 0d 6f 6e 20 6f 70 |loseMete|r..on op|
|00002da0| 65 6e 4d 49 41 57 20 74 | 68 65 57 69 6e 64 6f 77 |enMIAW t|heWindow|
|00002db0| 0d 20 20 0d 20 20 2d 2d | 20 73 74 6f 70 20 61 6e |. . --| stop an|
|00002dc0| 79 20 63 75 72 72 65 6e | 74 6c 79 20 70 6c 61 79 |y curren|tly play|
|00002dd0| 69 6e 67 20 61 75 64 69 | 6f 0d 20 20 70 75 74 20 |ing audi|o. put |
|00002de0| 74 68 65 20 70 61 74 68 | 6e 61 6d 65 20 26 20 74 |the path|name & t|
|00002df0| 68 65 57 69 6e 64 6f 77 | 20 69 6e 74 6f 20 62 75 |heWindow| into bu|
|00002e00| 64 4d 65 74 65 72 57 69 | 6e 64 6f 77 0d 20 20 70 |dMeterWi|ndow. p|
|00002e10| 75 70 70 65 74 53 6f 75 | 6e 64 20 30 0d 20 20 75 |uppetSou|nd 0. u|
|00002e20| 70 64 61 74 65 53 74 61 | 67 65 0d 20 20 73 6f 75 |pdateSta|ge. sou|
|00002e30| 6e 64 20 63 6c 6f 73 65 | 20 31 0d 20 20 73 6f 75 |nd close| 1. sou|
|00002e40| 6e 64 20 63 6c 6f 73 65 | 20 32 0d 20 20 72 65 6c |nd close| 2. rel|
|00002e50| 65 61 73 65 4d 65 6d 6f | 72 79 28 29 0d 20 20 73 |easeMemo|ry(). s|
|00002e60| 65 74 20 74 68 65 20 77 | 69 6e 64 6f 77 54 79 70 |et the w|indowTyp|
|00002e70| 65 20 6f 66 20 77 69 6e | 64 6f 77 20 62 75 64 4d |e of win|dow budM|
|00002e80| 65 74 65 72 57 69 6e 64 | 6f 77 20 3d 20 32 0d 20 |eterWind|ow = 2. |
|00002e90| 20 2d 2d 20 73 65 74 20 | 74 68 65 20 74 69 74 6c | -- set |the titl|
|00002ea0| 65 20 6f 66 20 77 69 6e | 64 6f 77 20 62 75 64 4d |e of win|dow budM|
|00002eb0| 65 74 65 72 57 69 6e 64 | 6f 77 20 3d 20 22 43 79 |eterWind|ow = "Cy|
|00002ec0| 62 65 72 6f 70 6f 6c 69 | 73 20 42 75 64 20 4d 65 |beropoli|s Bud Me|
|00002ed0| 74 65 72 22 0d 20 20 73 | 65 74 20 74 68 65 20 6d |ter". s|et the m|
|00002ee0| 6f 64 61 6c 20 6f 66 20 | 77 69 6e 64 6f 77 20 62 |odal of |window b|
|00002ef0| 75 64 4d 65 74 65 72 57 | 69 6e 64 6f 77 20 3d 20 |udMeterW|indow = |
|00002f00| 54 52 55 45 0d 20 20 0d | 20 20 2d 2d 20 53 65 74 |TRUE. .| -- Set|
|00002f10| 74 69 6e 67 20 74 68 65 | 20 64 72 61 77 52 65 63 |ting the| drawRec|
|00002f20| 74 20 73 65 65 6d 73 20 | 74 6f 20 68 61 76 65 20 |t seems |to have |
|00002f30| 74 68 65 20 77 72 6f 6e | 64 20 65 66 66 65 63 74 |the wron|d effect|
|00002f40| 0d 20 20 2d 2d 20 4b 4c | 55 44 47 45 20 74 6f 20 |. -- KL|UDGE to |
|00002f50| 70 72 65 76 65 6e 74 20 | 75 67 6c 79 20 72 65 73 |prevent |ugly res|
|00002f60| 69 64 75 61 6c 20 61 72 | 74 69 66 61 63 74 73 20 |idual ar|tifacts |
|00002f70| 6f 6e 20 57 69 6e 64 6f | 77 73 20 50 43 73 0d 20 |on Windo|ws PCs. |
|00002f80| 20 2d 2d 20 57 65 20 70 | 75 74 20 74 68 65 20 62 | -- We p|ut the b|
|00002f90| 75 64 20 6d 65 74 65 72 | 20 69 6e 20 74 68 65 20 |ud meter| in the |
|00002fa0| 75 70 70 70 65 72 20 6c | 65 66 74 20 63 6f 72 6e |uppper l|eft corn|
|00002fb0| 65 72 20 6f 66 20 74 68 | 65 20 73 74 61 67 65 2c |er of th|e stage,|
|00002fc0| 20 61 6e 64 20 69 74 20 | 73 65 65 6d 73 20 74 6f | and it |seems to|
|00002fd0| 20 68 65 6c 70 0d 20 20 | 69 66 20 74 68 65 20 6d | help. |if the m|
|00002fe0| 61 63 68 69 6e 65 54 79 | 70 65 20 3d 20 32 35 36 |achineTy|pe = 256|
|00002ff0| 20 74 68 65 6e 0d 20 20 | 20 20 73 65 74 20 6d 79 | then. | set my|
|00003000| 52 65 63 74 20 3d 20 72 | 65 63 74 20 28 74 68 65 |Rect = r|ect (the|
|00003010| 20 73 74 61 67 65 4c 65 | 66 74 2c 20 74 68 65 20 | stageLe|ft, the |
|00003020| 73 74 61 67 65 54 6f 70 | 2c 20 74 68 65 20 73 74 |stageTop|, the st|
|00003030| 61 67 65 4c 65 66 74 20 | 2b 20 34 31 36 2c 20 74 |ageLeft |+ 416, t|
|00003040| 68 65 20 73 74 61 67 65 | 54 6f 70 20 2b 20 33 32 |he stage|Top + 32|
|00003050| 36 29 0d 20 20 65 6c 73 | 65 0d 20 20 20 20 73 65 |6). els|e. se|
|00003060| 74 20 6c 65 66 74 4f 66 | 66 73 65 74 20 3d 20 74 |t leftOf|fset = t|
|00003070| 68 65 20 73 74 61 67 65 | 4c 65 66 74 20 2b 20 28 |he stage|Left + (|
|00003080| 28 74 68 65 20 73 74 61 | 67 65 52 69 67 68 74 20 |(the sta|geRight |
|00003090| 2d 20 74 68 65 20 73 74 | 61 67 65 4c 65 66 74 20 |- the st|ageLeft |
|000030a0| 2d 20 34 31 36 29 20 2f | 20 32 29 0d 20 20 20 20 |- 416) /| 2). |
|000030b0| 73 65 74 20 74 6f 70 4f | 66 66 73 65 74 20 3d 20 |set topO|ffset = |
|000030c0| 74 68 65 20 73 74 61 67 | 65 54 6f 70 20 2b 20 28 |the stag|eTop + (|
|000030d0| 28 74 68 65 20 73 74 61 | 67 65 42 6f 74 74 6f 6d |(the sta|geBottom|
|000030e0| 20 2d 20 74 68 65 20 73 | 74 61 67 65 54 6f 70 20 | - the s|tageTop |
|000030f0| 2d 20 33 32 36 29 20 2f | 20 32 29 0d 20 20 20 20 |- 326) /| 2). |
|00003100| 73 65 74 20 6d 79 52 65 | 63 74 20 3d 20 72 65 63 |set myRe|ct = rec|
|00003110| 74 20 28 6c 65 66 74 4f | 66 66 73 65 74 2c 20 74 |t (leftO|ffset, t|
|00003120| 6f 70 4f 66 66 73 65 74 | 2c 20 6c 65 66 74 4f 66 |opOffset|, leftOf|
|00003130| 66 73 65 74 20 2b 20 34 | 31 36 2c 20 74 6f 70 4f |fset + 4|16, topO|
|00003140| 66 66 73 65 74 20 2b 20 | 33 32 36 29 0d 20 20 65 |ffset + |326). e|
|00003150| 6e 64 20 69 66 0d 20 20 | 0d 20 20 73 65 74 20 74 |nd if. |. set t|
|00003160| 68 65 20 72 65 63 74 20 | 6f 66 20 77 69 6e 64 6f |he rect |of windo|
|00003170| 77 20 62 75 64 4d 65 74 | 65 72 57 69 6e 64 6f 77 |w budMet|erWindow|
|00003180| 20 3d 20 6d 79 52 65 63 | 74 0d 20 20 0d 20 20 6f | = myRec|t. . o|
|00003190| 70 65 6e 20 77 69 6e 64 | 6f 77 20 62 75 64 4d 65 |pen wind|ow budMe|
|000031a0| 74 65 72 57 69 6e 64 6f | 77 0d 65 6e 64 20 6f 70 |terWindo|w.end op|
|000031b0| 65 6e 4d 49 41 57 0d 0d | 6f 6e 20 72 65 6c 65 61 |enMIAW..|on relea|
|000031c0| 73 65 4d 65 6d 6f 72 79 | 0d 20 20 2d 2d 20 73 65 |seMemory|. -- se|
|000031d0| 74 20 74 68 65 20 70 75 | 72 67 65 50 72 69 6f 72 |t the pu|rgePrior|
|000031e0| 69 74 79 20 6f 66 20 63 | 61 73 74 20 22 42 75 64 |ity of c|ast "Bud|
|000031f0| 20 4d 65 74 65 72 20 42 | 61 63 6b 67 72 6f 75 6e | Meter B|ackgroun|
|00003200| 64 20 50 69 63 74 22 20 | 3d 20 30 0d 20 20 75 6e |d Pict" |= 0. un|
|00003210| 6c 6f 61 64 43 61 73 74 | 0d 20 20 2d 2d 20 73 65 |loadCast|. -- se|
|00003220| 74 20 74 68 65 20 70 75 | 72 67 65 50 72 69 6f 72 |t the pu|rgePrior|
|00003230| 69 74 79 20 6f 66 20 63 | 61 73 74 20 22 42 75 64 |ity of c|ast "Bud|
|00003240| 20 4d 65 74 65 72 20 42 | 61 63 6b 67 72 6f 75 6e | Meter B|ackgroun|
|00003250| 64 20 50 69 63 74 22 20 | 3d 20 31 0d 65 6e 64 20 |d Pict" |= 1.end |
|00003260| 72 65 6c 65 61 73 65 4d | 65 6d 6f 72 79 0d 0d 6f |releaseM|emory..o|
|00003270| 6e 20 69 64 6c 65 0d 20 | 20 67 6c 6f 62 61 6c 20 |n idle. | global |
|00003280| 67 48 79 70 65 72 42 75 | 64 4d 6f 64 75 6c 65 2c |gHyperBu|dModule,|
|00003290| 66 69 6c 65 53 65 70 2c | 20 76 6f 69 64 0d 20 20 |fileSep,| void. |
|000032a0| 0d 20 2d 2d 20 70 75 74 | 20 74 68 65 20 66 72 65 |. -- put| the fre|
|000032b0| 65 62 79 74 65 73 0d 20 | 20 0d 20 20 2d 2d 20 43 |ebytes. | . -- C|
|000032c0| 61 75 73 65 73 20 68 79 | 70 65 72 6a 75 6d 70 20 |auses hy|perjump |
|000032d0| 65 76 65 6e 20 74 6f 20 | 63 75 72 72 65 6e 74 20 |even to |current |
|000032e0| 6d 6f 64 75 6c 65 0d 20 | 20 69 66 20 28 6e 6f 74 |module. | if (not|
|000032f0| 20 76 6f 69 64 50 28 67 | 48 79 70 65 72 42 75 64 | voidP(g|HyperBud|
|00003300| 4d 6f 64 75 6c 65 29 29 | 20 74 68 65 6e 0d 20 20 |Module))| then. |
|00003310| 20 20 69 66 20 63 6f 75 | 6e 74 20 28 74 68 65 20 | if cou|nt (the |
|00003320| 77 69 6e 64 6f 77 4c 69 | 73 74 29 20 3d 20 30 20 |windowLi|st) = 0 |
|00003330| 74 68 65 6e 0d 20 20 20 | 20 20 20 2d 2d 20 50 6c |then. | -- Pl|
|00003340| 61 79 20 73 6f 6d 65 20 | 73 6f 72 74 20 6f 66 20 |ay some |sort of |
|00003350| 6d 75 73 69 63 20 69 6e | 74 72 6f 3f 0d 20 20 20 |music in|tro?. |
|00003360| 20 20 20 69 66 20 28 74 | 68 65 20 6d 6f 76 69 65 | if (t|he movie|
|00003370| 20 3c 3e 20 67 48 79 70 | 65 72 42 75 64 4d 6f 64 | <> gHyp|erBudMod|
|00003380| 75 6c 65 29 20 74 68 65 | 6e 0d 20 20 20 20 20 20 |ule) the|n. |
|00003390| 20 20 69 66 20 67 48 79 | 70 65 72 42 75 64 4d 6f | if gHy|perBudMo|
|000033a0| 64 75 6c 65 20 3d 20 22 | 70 6f 50 72 6f 22 20 74 |dule = "|poPro" t|
|000033b0| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 20 20 73 65 |hen. | se|
|000033c0| 74 20 6d 6f 64 75 6c 65 | 53 6f 75 6e 64 20 3d 20 |t module|Sound = |
|000033d0| 22 50 6f 73 74 2e 41 49 | 46 22 0d 20 20 20 20 20 |"Post.AI|F". |
|000033e0| 20 20 20 65 6c 73 65 20 | 69 66 20 67 48 79 70 65 | else |if gHype|
|000033f0| 72 42 75 64 4d 6f 64 75 | 6c 65 20 3d 20 22 53 63 |rBudModu|le = "Sc|
|00003400| 69 44 6f 6d 65 22 20 74 | 68 65 6e 0d 20 20 20 20 |iDome" t|hen. |
|00003410| 20 20 20 20 20 20 73 65 | 74 20 6d 6f 64 75 6c 65 | se|t module|
|00003420| 53 6f 75 6e 64 20 3d 20 | 22 53 63 69 2e 41 49 46 |Sound = |"Sci.AIF|
|00003430| 22 0d 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 69 |". | else i|
|00003440| 66 20 67 48 79 70 65 72 | 42 75 64 4d 6f 64 75 6c |f gHyper|BudModul|
|00003450| 65 20 3d 20 22 41 71 75 | 61 22 20 74 68 65 6e 0d |e = "Aqu|a" then.|
|00003460| 20 20 20 20 20 20 20 20 | 20 20 73 65 74 20 6d 6f | | set mo|
|00003470| 64 75 6c 65 53 6f 75 6e | 64 20 3d 20 22 41 71 75 |duleSoun|d = "Aqu|
|00003480| 61 2e 41 49 46 22 0d 20 | 20 20 20 20 20 20 20 65 |a.AIF". | e|
|00003490| 6c 73 65 20 69 66 20 67 | 48 79 70 65 72 42 75 64 |lse if g|HyperBud|
|000034a0| 4d 6f 64 75 6c 65 20 3d | 20 22 4c 69 62 22 20 74 |Module =| "Lib" t|
|000034b0| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 20 20 73 65 |hen. | se|
|000034c0| 74 20 6d 6f 64 75 6c 65 | 53 6f 75 6e 64 20 3d 20 |t module|Sound = |
|000034d0| 22 4c 69 62 2e 41 49 46 | 22 0d 20 20 20 20 20 20 |"Lib.AIF|". |
|000034e0| 20 20 65 6c 73 65 20 69 | 66 20 67 48 79 70 65 72 | else i|f gHyper|
|000034f0| 42 75 64 4d 6f 64 75 6c | 65 20 3d 20 22 52 61 22 |BudModul|e = "Ra"|
|00003500| 20 74 68 65 6e 0d 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00003510| 73 65 74 20 6d 6f 64 75 | 6c 65 53 6f 75 6e 64 20 |set modu|leSound |
|00003520| 3d 20 22 44 69 6e 65 72 | 2e 41 49 46 22 0d 20 20 |= "Diner|.AIF". |
|00003530| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 67 48 | el|se if gH|
|00003540| 79 70 65 72 42 75 64 4d | 6f 64 75 6c 65 20 3d 20 |yperBudM|odule = |
|00003550| 22 53 75 62 22 20 74 68 | 65 6e 0d 20 20 20 20 20 |"Sub" th|en. |
|00003560| 20 20 20 20 20 73 65 74 | 20 6d 6f 64 75 6c 65 53 | set| moduleS|
|00003570| 6f 75 6e 64 20 3d 20 22 | 53 75 62 2e 41 49 46 22 |ound = "|Sub.AIF"|
|00003580| 0d 20 20 20 20 20 20 20 | 20 65 6e 64 20 69 66 0d |. | end if.|
|00003590| 20 20 20 20 20 20 20 20 | 0d 20 20 20 20 20 20 20 | |. |
|000035a0| 20 72 65 6c 65 61 73 65 | 4d 65 6d 6f 72 79 28 29 | release|Memory()|
|000035b0| 0d 20 20 20 20 20 20 20 | 20 0d 20 20 20 20 20 20 |. | . |
|000035c0| 20 20 73 6f 75 6e 64 20 | 70 6c 61 79 46 69 6c 65 | sound |playFile|
|000035d0| 20 32 2c 20 74 68 65 20 | 70 61 74 68 4e 61 6d 65 | 2, the |pathName|
|000035e0| 20 26 20 22 35 73 6f 75 | 6e 64 73 22 20 26 20 66 | & "5sou|nds" & f|
|000035f0| 69 6c 65 53 65 70 20 26 | 20 6d 6f 64 75 6c 65 53 |ileSep &| moduleS|
|00003600| 6f 75 6e 64 0d 20 20 20 | 20 20 20 20 20 67 6f 20 |ound. | go |
|00003610| 74 6f 20 6d 6f 76 69 65 | 20 67 48 79 70 65 72 42 |to movie| gHyperB|
|00003620| 75 64 4d 6f 64 75 6c 65 | 0d 20 20 20 20 20 20 65 |udModule|. e|
|00003630| 6e 64 20 69 66 0d 20 20 | 20 20 20 20 73 65 74 20 |nd if. | set |
|00003640| 67 48 79 70 65 72 42 75 | 64 4d 6f 64 75 6c 65 20 |gHyperBu|dModule |
|00003650| 3d 20 76 6f 69 64 0d 20 | 20 20 20 65 6e 64 20 69 |= void. | end i|
|00003660| 66 0d 20 20 65 6e 64 20 | 69 66 0d 20 20 0d 65 6e |f. end |if. .en|
|00003670| 64 20 69 64 6c 65 0d 0d | 0d 6f 6e 20 63 68 65 63 |d idle..|.on chec|
|00003680| 6b 46 6f 72 46 75 6c 6c | 4d 65 6d 0d 20 20 67 6c |kForFull|Mem. gl|
|00003690| 6f 62 61 6c 20 67 4d 65 | 6d 6f 72 79 50 75 72 67 |obal gMe|moryPurg|
|000036a0| 65 50 6f 69 6e 74 2c 20 | 67 53 6d 61 6c 6c 65 73 |ePoint, |gSmalles|
|000036b0| 74 42 6c 6f 63 6b 50 6f | 69 6e 74 0d 20 20 0d 20 |tBlockPo|int. . |
|000036c0| 20 2d 2d 20 50 75 72 67 | 65 20 69 66 20 74 68 65 | -- Purg|e if the|
|000036d0| 79 20 61 72 65 20 64 6f | 77 6e 20 74 6f 20 6c 65 |y are do|wn to le|
|000036e0| 73 73 20 74 68 61 6e 20 | 35 20 70 65 72 63 65 6e |ss than |5 percen|
|000036f0| 74 20 6f 66 20 6d 65 6d | 6f 72 79 20 66 72 65 65 |t of mem|ory free|
|00003700| 0d 20 20 73 65 74 20 67 | 4d 65 6d 6f 72 79 50 75 |. set g|MemoryPu|
|00003710| 72 67 65 50 6f 69 6e 74 | 20 20 20 3d 20 28 74 68 |rgePoint| = (th|
|00003720| 65 20 6d 65 6d 6f 72 79 | 53 69 7a 65 29 20 2f 20 |e memory|Size) / |
|00003730| 32 30 0d 20 20 73 65 74 | 20 67 53 6d 61 6c 6c 65 |20. set| gSmalle|
|00003740| 73 74 42 6c 6f 63 6b 50 | 6f 69 6e 74 20 3d 20 20 |stBlockP|oint = |
|00003750| 67 4d 65 6d 6f 72 79 50 | 75 72 67 65 50 6f 69 6e |gMemoryP|urgePoin|
|00003760| 74 20 2f 20 32 0d 20 20 | 0d 20 20 69 66 20 28 74 |t / 2. |. if (t|
|00003770| 68 65 20 66 72 65 65 42 | 79 74 65 73 20 3c 20 67 |he freeB|ytes < g|
|00003780| 4d 65 6d 6f 72 79 50 75 | 72 67 65 50 6f 69 6e 74 |MemoryPu|rgePoint|
|00003790| 29 20 6f 72 20 28 74 68 | 65 20 66 72 65 65 42 6c |) or (th|e freeBl|
|000037a0| 6f 63 6b 20 3c 20 67 53 | 6d 61 6c 6c 65 73 74 42 |ock < gS|mallestB|
|000037b0| 6c 6f 63 6b 50 6f 69 6e | 74 29 20 74 68 65 6e 0d |lockPoin|t) then.|
|000037c0| 20 20 20 20 2d 2d 20 46 | 49 58 20 2d 20 77 69 6c | -- F|IX - wil|
|000037d0| 6c 20 74 68 69 73 20 63 | 61 75 73 65 20 69 74 20 |l this c|ause it |
|000037e0| 74 6f 20 74 68 72 61 73 | 68 3f 0d 20 20 20 20 72 |to thras|h?. r|
|000037f0| 65 6c 65 61 73 65 4d 65 | 6d 6f 72 79 28 29 0d 20 |eleaseMe|mory(). |
|00003800| 20 65 6e 64 20 69 66 0d | 65 6e 64 20 63 68 65 63 | end if.|end chec|
|00003810| 6b 46 6f 72 46 75 6c 6c | 4d 65 6d 0d 0d 0d 6f 6e |kForFull|Mem...on|
|00003820| 20 70 75 72 67 65 4d 65 | 6d 20 70 75 72 67 65 4c | purgeMe|m purgeL|
|00003830| 69 6d 69 74 2c 20 73 74 | 61 72 74 4e 6f 2c 20 65 |imit, st|artNo, e|
|00003840| 6e 64 4e 6f 0d 20 20 0d | 20 20 0d 20 20 69 66 20 |ndNo. .| . if |
|00003850| 73 74 61 72 74 4e 6f 20 | 3e 20 65 6e 64 4e 6f 20 |startNo |> endNo |
|00003860| 74 68 65 6e 20 0d 20 20 | 20 20 73 65 74 20 74 65 |then . | set te|
|00003870| 6d 70 20 3d 20 65 6e 64 | 4e 6f 0d 20 20 20 20 73 |mp = end|No. s|
|00003880| 65 74 20 65 6e 64 4e 6f | 20 3d 20 73 74 61 72 74 |et endNo| = start|
|00003890| 4e 6f 0d 20 20 20 20 73 | 65 74 20 73 74 61 72 74 |No. s|et start|
|000038a0| 4e 6f 20 3d 20 65 6e 64 | 4e 6f 0d 20 20 65 6e 64 |No = end|No. end|
|000038b0| 20 69 66 0d 20 20 0d 20 | 20 69 66 20 28 74 68 65 | if. . | if (the|
|000038c0| 20 70 61 72 61 6d 43 6f | 75 6e 74 20 3e 3d 20 31 | paramCo|unt >= 1|
|000038d0| 29 20 74 68 65 6e 0d 20 | 20 20 20 73 65 74 20 70 |) then. | set p|
|000038e0| 75 72 67 65 4c 65 76 65 | 6c 20 3d 20 70 75 72 67 |urgeLeve|l = purg|
|000038f0| 65 4c 69 6d 69 74 0d 20 | 20 65 6c 73 65 0d 20 20 |eLimit. | else. |
|00003900| 20 20 73 65 74 20 70 75 | 72 67 65 4c 65 76 65 6c | set pu|rgeLevel|
|00003910| 20 3d 20 33 0d 20 20 65 | 6e 64 20 69 66 0d 20 20 | = 3. e|nd if. |
|00003920| 0d 20 20 69 66 20 28 74 | 68 65 20 70 61 72 61 6d |. if (t|he param|
|00003930| 43 6f 75 6e 74 20 3e 3d | 20 32 29 20 74 68 65 6e |Count >=| 2) then|
|00003940| 0d 20 20 20 20 73 65 74 | 20 73 74 61 72 74 43 61 |. set| startCa|
|00003950| 73 74 20 3d 20 73 74 61 | 72 74 4e 6f 0d 20 20 65 |st = sta|rtNo. e|
|00003960| 6c 73 65 0d 20 20 20 20 | 73 65 74 20 73 74 61 72 |lse. |set star|
|00003970| 74 43 61 73 74 20 3d 20 | 31 0d 20 20 65 6e 64 20 |tCast = |1. end |
|00003980| 69 66 0d 20 20 0d 20 20 | 69 66 20 74 68 65 20 70 |if. . |if the p|
|00003990| 61 72 61 6d 43 6f 75 6e | 74 20 3e 3d 20 33 20 74 |aramCoun|t >= 3 t|
|000039a0| 68 65 6e 0d 20 20 20 20 | 73 65 74 20 6c 61 73 74 |hen. |set last|
|000039b0| 43 61 73 74 20 3d 20 65 | 6e 64 4e 6f 0d 20 20 65 |Cast = e|ndNo. e|
|000039c0| 6c 73 65 0d 20 20 20 20 | 73 65 74 20 6c 61 73 74 |lse. |set last|
|000039d0| 43 61 73 74 20 3d 20 74 | 68 65 20 6e 75 6d 62 65 |Cast = t|he numbe|
|000039e0| 72 20 6f 66 20 63 61 73 | 74 6d 65 6d 62 65 72 73 |r of cas|tmembers|
|000039f0| 0d 20 20 65 6e 64 20 69 | 66 0d 20 20 0d 20 20 0d |. end i|f. . .|
|00003a00| 20 20 72 65 70 65 61 74 | 20 77 69 74 68 20 78 20 | repeat| with x |
|00003a10| 3d 20 73 74 61 72 74 43 | 61 73 74 20 74 6f 20 6c |= startC|ast to l|
|00003a20| 61 73 74 43 61 73 74 0d | 20 20 20 20 69 66 20 74 |astCast.| if t|
|00003a30| 68 65 20 70 75 72 67 65 | 50 72 69 6f 72 69 74 79 |he purge|Priority|
|00003a40| 20 6f 66 20 63 61 73 74 | 20 78 20 3e 3d 20 70 75 | of cast| x >= pu|
|00003a50| 72 67 65 4c 65 76 65 6c | 20 74 68 65 6e 0d 20 20 |rgeLevel| then. |
|00003a60| 20 20 20 20 75 6e 4c 6f | 61 64 43 61 73 74 20 78 | unLo|adCast x|
|00003a70| 0d 20 20 20 20 65 6e 64 | 20 69 66 20 20 0d 20 20 |. end| if . |
|00003a80| 65 6e 64 20 72 65 70 65 | 61 74 0d 20 20 0d 65 6e |end repe|at. .en|
|00003a90| 64 20 70 75 72 67 65 4d | 65 6d 0d 0d 0d 6f 6e 20 |d purgeM|em...on |
|00003aa0| 73 65 74 41 6e 69 6d 61 | 74 69 6f 6e 43 75 72 73 |setAnima|tionCurs|
|00003ab0| 6f 72 0d 20 20 2d 2d 20 | 20 77 68 65 6e 20 74 69 |or. -- | when ti|
|00003ac0| 6d 65 6f 75 74 20 74 68 | 65 6e 20 6e 6f 74 68 69 |meout th|en nothi|
|00003ad0| 6e 67 0d 20 20 63 75 72 | 73 6f 72 20 32 30 30 0d |ng. cur|sor 200.|
|00003ae0| 65 6e 64 20 73 65 74 41 | 6e 69 6d 61 74 69 6f 6e |end setA|nimation|
|00003af0| 43 75 72 73 6f 72 0d 0d | 0d 6f 6e 20 72 65 73 65 |Cursor..|.on rese|
|00003b00| 74 41 6e 69 6d 61 74 69 | 6f 6e 43 75 72 73 6f 72 |tAnimati|onCursor|
|00003b10| 0d 20 20 2d 2d 20 77 68 | 65 6e 20 74 69 6d 65 6f |. -- wh|en timeo|
|00003b20| 75 74 20 74 68 65 6e 20 | 63 68 65 63 6b 46 6f 72 |ut then |checkFor|
|00003b30| 46 75 6c 6c 4d 65 6d 28 | 29 0d 20 20 2d 2d 20 20 |FullMem(|). -- |
|00003b40| 63 75 72 73 6f 72 20 2d | 31 0d 65 6e 64 20 72 65 |cursor -|1.end re|
|00003b50| 73 65 74 41 6e 69 6d 61 | 74 69 6f 6e 43 75 72 73 |setAnima|tionCurs|
|00003b60| 6f 72 0d 19 53 68 61 72 | 65 64 20 43 61 73 74 20 |or..Shar|ed Cast |
|00003b70| 4d 6f 76 69 65 20 53 63 | 72 69 70 74 73 00 2a 00 |Movie Sc|ripts.*.|
|00003b80| 04 01 01 02 72 00 00 2c | cd 00 00 2c d0 00 00 00 |....r..,|...,....|
|00003b90| 96 00 01 00 00 00 00 00 | 0b 00 09 00 04 00 00 00 |........|........|
|00003ba0| 09 00 00 00 00 00 00 20 | 43 41 53 74 00 00 00 c6 |....... |CASt....|
|00003bb0| 00 1c 00 00 00 a4 01 22 | 80 2c 00 3e 00 69 00 85 |......."|.,.>.i..|
|00003bc0| 00 94 00 32 00 5d 00 91 | 00 b1 00 61 00 7e 00 08 |...2.]..|...a.~..|
|00003bd0| 00 00 00 00 00 14 01 44 | d1 58 00 00 00 00 00 00 |.......D|.X......|
|00003be0| 00 0a 00 00 00 09 00 07 | 00 00 00 00 00 00 00 3f |........|.......?|
|00003bf0| 00 00 00 44 00 00 00 44 | 00 00 00 44 00 00 00 44 |...D...D|...D...D|
|00003c00| 00 00 00 58 00 00 00 6e | 6f 6e 20 6d 6f 75 73 65 |...X...n|on mouse|
|00003c10| 55 70 0d 20 20 2d 2d 20 | 44 65 66 61 75 6c 74 20 |Up. -- |Default |
|00003c20| 73 74 61 74 65 2c 20 62 | 75 74 74 6f 6e 20 69 73 |state, b|utton is|
|00003c30| 20 64 69 73 61 62 6c 65 | 64 0d 20 20 6e 6f 74 68 | disable|d. noth|
|00003c40| 69 6e 67 0d 65 6e 64 04 | 48 65 6c 70 00 32 00 32 |ing.end.|Help.2.2|
|00003c50| 00 c8 01 90 00 00 00 17 | 00 00 00 17 56 6c 00 00 |........|....Vl..|
|00003c60| 00 01 00 00 00 00 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00003c70| 00 00 00 00 00 00 43 41 | 53 74 00 00 00 4b 00 1c |......CA|St...K..|
|00003c80| 00 00 00 29 01 22 80 0a | 00 68 00 56 00 78 00 60 |...)."..|.h.V.x.`|
|00003c90| 00 5c 00 4a 00 b0 00 9e | 00 6a 00 57 00 08 00 00 |.\.J....|.j.W....|
|00003ca0| 00 00 00 14 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 07 06 43 75 72 73 6f | 72 68 43 41 53 74 00 00 |...Curso|rhCASt..|
|00003cd0| 00 48 00 18 00 00 00 2a | 01 00 00 02 00 51 00 57 |.H.....*|.....Q.W|
|00003ce0| 00 52 00 58 00 51 00 57 | 00 52 00 58 00 96 00 57 |.R.X.Q.W|.R.X...W|
|00003cf0| 00 00 00 14 00 00 00 00 | 00 00 00 00 00 00 00 08 |........|........|
|00003d00| 00 00 00 00 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 08 07 48 65 6c 70 44 | 6f 74 43 41 53 74 00 00 |...HelpD|otCASt..|
|00003d20| 25 ed 00 04 00 00 25 e3 | 0b 00 00 03 00 00 00 14 |%.....%.|........|
|00003d30| 01 44 d1 74 00 00 00 00 | 00 00 00 00 00 00 00 08 |.D.t....|........|
|00003d40| 00 07 00 00 00 00 00 00 | 21 81 00 00 21 9b 00 00 |........|!...!...|
|00003d50| 21 9b 00 00 21 9b 00 00 | 21 9b 00 00 21 af 00 00 |!...!...|!...!...|
|00003d60| 25 ad 2d 2d 20 4d 6f 76 | 65 64 20 66 72 6f 6d 20 |%.-- Mov|ed from |
|00003d70| 69 6e 64 69 76 69 64 75 | 61 6c 20 72 65 73 74 61 |individu|al resta|
|00003d80| 75 72 61 6e 74 20 6d 6f | 76 69 65 73 20 0d 6f 6e |urant mo|vies .on|
|00003d90| 20 73 74 61 72 74 52 65 | 73 74 61 75 72 61 6e 74 | startRe|staurant|
|00003da0| 4d 6f 76 69 65 20 65 78 | 69 74 4d 6f 76 69 65 2c |Movie ex|itMovie,|
|00003db0| 20 6e 75 6d 50 69 63 74 | 73 0d 20 20 67 6c 6f 62 | numPict|s. glob|
|00003dc0| 61 6c 20 63 75 72 72 65 | 6e 74 4d 6f 64 75 6c 65 |al curre|ntModule|
|00003dd0| 0d 20 20 67 6c 6f 62 61 | 6c 20 74 68 65 4d 61 73 |. globa|l theMas|
|00003de0| 6b 50 75 70 70 65 74 2c | 20 74 68 65 54 65 78 74 |kPuppet,| theText|
|00003df0| 50 75 70 70 65 74 2c 20 | 74 68 65 50 69 63 74 50 |Puppet, |thePictP|
|00003e00| 75 70 70 65 74 2c 20 67 | 51 75 69 74 2c 20 67 45 |uppet, g|Quit, gE|
|00003e10| 78 69 74 4c 6f 63 0d 20 | 20 67 6c 6f 62 61 6c 20 |xitLoc. | global |
|00003e20| 67 52 65 73 74 61 75 72 | 61 6e 74 4d 6f 6e 65 79 |gRestaur|antMoney|
|00003e30| 4d 61 73 6b 2c 20 67 52 | 65 73 74 61 75 72 61 6e |Mask, gR|estauran|
|00003e40| 74 4e 75 6d 50 69 63 74 | 73 0d 20 20 67 6c 6f 62 |tNumPict|s. glob|
|00003e50| 61 6c 20 67 52 65 73 74 | 61 75 72 61 6e 74 50 69 |al gRest|aurantPi|
|00003e60| 63 74 75 72 65 4c 69 73 | 74 0d 20 20 0d 20 20 73 |ctureLis|t. . s|
|00003e70| 65 74 20 67 52 65 73 74 | 61 75 72 61 6e 74 4d 6f |et gRest|aurantMo|
|00003e80| 6e 65 79 4d 61 73 6b 20 | 3d 20 74 68 65 20 6e 75 |neyMask |= the nu|
|00003e90| 6d 62 65 72 20 6f 66 20 | 63 61 73 74 20 22 4d 6f |mber of |cast "Mo|
|00003ea0| 6e 65 79 20 53 69 67 6e | 22 0d 20 20 73 65 74 20 |ney Sign|". set |
|00003eb0| 67 52 65 73 74 61 75 72 | 61 6e 74 4e 75 6d 50 69 |gRestaur|antNumPi|
|00003ec0| 63 74 73 20 3d 20 6e 75 | 6d 50 69 63 74 73 0d 20 |cts = nu|mPicts. |
|00003ed0| 20 0d 20 20 62 75 69 6c | 64 52 65 73 74 61 75 72 | . buil|dRestaur|
|00003ee0| 61 6e 74 50 69 63 74 4c | 69 73 74 28 29 0d 20 20 |antPictL|ist(). |
|00003ef0| 64 65 6c 65 74 65 41 74 | 20 28 67 52 65 73 74 61 |deleteAt| (gResta|
|00003f00| 75 72 61 6e 74 50 69 63 | 74 75 72 65 4c 69 73 74 |urantPic|tureList|
|00003f10| 2c 20 31 29 0d 20 20 0d | 20 20 69 6e 69 74 42 75 |, 1). .| initBu|
|00003f20| 64 4d 65 74 65 72 43 61 | 73 74 28 29 0d 20 20 0d |dMeterCa|st(). .|
|00003f30| 20 20 70 75 74 20 65 78 | 69 74 4d 6f 76 69 65 20 | put ex|itMovie |
|00003f40| 69 6e 74 6f 20 67 45 78 | 69 74 4c 6f 63 0d 20 20 |into gEx|itLoc. |
|00003f50| 70 75 74 20 31 35 20 69 | 6e 74 6f 20 74 68 65 4d |put 15 i|nto theM|
|00003f60| 61 73 6b 50 75 70 70 65 | 74 0d 20 20 70 75 74 20 |askPuppe|t. put |
|00003f70| 31 36 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 50 |16 into |theTextP|
|00003f80| 75 70 70 65 74 0d 20 20 | 70 75 74 20 31 33 20 69 |uppet. |put 13 i|
|00003f90| 6e 74 6f 20 74 68 65 50 | 69 63 74 50 75 70 70 65 |nto theP|ictPuppe|
|00003fa0| 74 0d 20 20 2d 2d 20 46 | 49 58 0d 20 20 50 75 70 |t. -- F|IX. Pup|
|00003fb0| 70 65 74 53 70 72 69 74 | 65 20 74 68 65 50 69 63 |petSprit|e thePic|
|00003fc0| 74 50 75 70 70 65 74 2c | 66 61 6c 73 65 0d 20 20 |tPuppet,|false. |
|00003fd0| 50 75 70 70 65 74 53 70 | 72 69 74 65 20 74 68 65 |PuppetSp|rite the|
|00003fe0| 50 69 63 74 50 75 70 70 | 65 74 2c 74 72 75 65 0d |PictPupp|et,true.|
|00003ff0| 20 20 73 65 74 20 74 68 | 65 20 76 69 73 69 62 69 | set th|e visibi|
|00004000| 6c 69 74 79 20 6f 66 20 | 73 70 72 69 74 65 20 74 |lity of |sprite t|
|00004010| 68 65 4d 61 73 6b 50 75 | 70 70 65 74 20 74 6f 20 |heMaskPu|ppet to |
|00004020| 66 61 6c 73 65 0d 20 20 | 73 65 74 20 74 68 65 20 |false. |set the |
|00004030| 76 69 73 69 62 69 6c 69 | 74 79 20 6f 66 20 73 70 |visibili|ty of sp|
|00004040| 72 69 74 65 20 74 68 65 | 54 65 78 74 50 75 70 70 |rite the|TextPupp|
|00004050| 65 74 20 74 6f 20 66 61 | 6c 73 65 0d 20 20 70 75 |et to fa|lse. pu|
|00004060| 74 20 66 61 6c 73 65 20 | 69 6e 74 6f 20 67 51 75 |t false |into gQu|
|00004070| 69 74 0d 20 20 69 6e 69 | 74 52 65 73 74 61 75 72 |it. ini|tRestaur|
|00004080| 61 6e 74 28 29 0d 20 20 | 0d 20 20 70 75 74 20 23 |ant(). |. put #|
|00004090| 72 61 20 69 6e 74 6f 20 | 63 75 72 72 65 6e 74 4d |ra into |currentM|
|000040a0| 6f 64 75 6c 65 0d 20 20 | 0d 65 6e 64 20 73 74 61 |odule. |.end sta|
|000040b0| 72 74 52 65 73 74 61 75 | 72 61 6e 74 4d 6f 76 69 |rtRestau|rantMovi|
|000040c0| 65 0d 0d 6f 6e 20 73 74 | 6f 70 52 65 73 74 61 75 |e..on st|opRestau|
|000040d0| 72 61 6e 74 4d 6f 76 69 | 65 0d 20 20 67 6c 6f 62 |rantMovi|e. glob|
|000040e0| 61 6c 20 74 68 65 4d 61 | 73 6b 50 75 70 70 65 74 |al theMa|skPuppet|
|000040f0| 2c 20 74 68 65 54 65 78 | 74 50 75 70 70 65 74 2c |, theTex|tPuppet,|
|00004100| 20 74 68 65 50 69 63 74 | 50 75 70 70 65 74 0d 20 | thePict|Puppet. |
|00004110| 20 2d 2d 20 50 75 70 70 | 65 74 53 70 72 69 74 65 | -- Pupp|etSprite|
|00004120| 20 74 68 65 50 69 63 74 | 50 75 70 70 65 74 2c 66 | thePict|Puppet,f|
|00004130| 61 6c 73 65 0d 20 20 50 | 75 70 70 65 74 53 70 72 |alse. P|uppetSpr|
|00004140| 69 74 65 20 74 68 65 54 | 65 78 74 50 75 70 70 65 |ite theT|extPuppe|
|00004150| 74 2c 66 61 6c 73 65 0d | 20 20 50 75 70 70 65 74 |t,false.| Puppet|
|00004160| 53 70 72 69 74 65 20 74 | 68 65 4d 61 73 6b 50 75 |Sprite t|heMaskPu|
|00004170| 70 70 65 74 2c 66 61 6c | 73 65 0d 20 20 2d 2d 20 |ppet,fal|se. -- |
|00004180| 20 72 65 6c 65 61 73 65 | 4d 65 6d 6f 72 79 28 29 | release|Memory()|
|00004190| 0d 65 6e 64 20 73 74 6f | 70 52 65 73 74 61 75 72 |.end sto|pRestaur|
|000041a0| 61 6e 74 4d 6f 76 69 65 | 0d 0d 6f 6e 20 52 65 73 |antMovie|..on Res|
|000041b0| 74 61 75 72 61 6e 74 53 | 6b 69 70 41 68 65 61 64 |taurantS|kipAhead|
|000041c0| 0d 20 20 50 75 70 70 65 | 74 53 6f 75 6e 64 20 30 |. Puppe|tSound 0|
|000041d0| 0d 20 20 73 6f 75 6e 64 | 20 73 74 6f 70 20 31 0d |. sound| stop 1.|
|000041e0| 20 20 73 6f 75 6e 64 20 | 73 74 6f 70 20 32 0d 20 | sound |stop 2. |
|000041f0| 20 73 65 74 20 74 68 65 | 20 6d 6f 75 73 65 44 6f | set the| mouseDo|
|00004200| 77 6e 53 63 72 69 70 74 | 20 74 6f 20 65 6d 70 74 |wnScript| to empt|
|00004210| 79 0d 20 20 67 6f 20 74 | 6f 20 22 73 74 61 72 74 |y. go t|o "start|
|00004220| 2b 31 22 0d 20 20 2d 2d | 70 61 73 73 0d 65 6e 64 |+1". --|pass.end|
|00004230| 20 52 65 73 74 61 75 72 | 61 6e 74 53 6b 69 70 41 | Restaur|antSkipA|
|00004240| 68 65 61 64 0d 0d 0d 6f | 6e 20 52 65 73 74 61 75 |head...o|n Restau|
|00004250| 72 61 6e 74 49 73 49 6e | 73 69 64 65 20 72 65 63 |rantIsIn|side rec|
|00004260| 74 4c 69 73 74 2c 61 50 | 6f 69 6e 74 0d 20 20 72 |tList,aP|oint. r|
|00004270| 65 70 65 61 74 20 77 69 | 74 68 20 61 52 65 63 74 |epeat wi|th aRect|
|00004280| 20 69 6e 20 72 65 63 74 | 4c 69 73 74 0d 20 20 20 | in rect|List. |
|00004290| 20 69 66 20 69 6e 73 69 | 64 65 28 61 50 6f 69 6e | if insi|de(aPoin|
|000042a0| 74 2c 61 52 65 63 74 29 | 20 74 68 65 6e 20 72 65 |t,aRect)| then re|
|000042b0| 74 75 72 6e 20 74 72 75 | 65 0d 20 20 65 6e 64 20 |turn tru|e. end |
|000042c0| 72 65 70 65 61 74 0d 20 | 20 72 65 74 75 72 6e 20 |repeat. | return |
|000042d0| 66 61 6c 73 65 0d 65 6e | 64 20 52 65 73 74 61 75 |false.en|d Restau|
|000042e0| 72 61 6e 74 49 73 49 6e | 73 69 64 65 0d 0d 0d 0d |rantIsIn|side....|
|000042f0| 6f 6e 20 67 65 74 52 65 | 73 74 61 75 72 61 6e 74 |on getRe|staurant|
|00004300| 4f 62 6a 41 74 20 61 50 | 6f 69 6e 74 0d 20 20 67 |ObjAt aP|oint. g|
|00004310| 6c 6f 62 61 6c 20 6f 62 | 6a 73 0d 20 20 0d 20 20 |lobal ob|js. . |
|00004320| 72 65 70 65 61 74 20 77 | 69 74 68 20 6f 62 6a 20 |repeat w|ith obj |
|00004330| 69 6e 20 6f 62 6a 73 0d | 20 20 20 20 69 66 20 52 |in objs.| if R|
|00004340| 65 73 74 61 75 72 61 6e | 74 49 73 49 6e 73 69 64 |estauran|tIsInsid|
|00004350| 65 28 67 65 74 50 72 6f | 70 28 6f 62 6a 2c 23 72 |e(getPro|p(obj,#r|
|00004360| 65 63 74 73 29 2c 61 50 | 6f 69 6e 74 29 20 74 68 |ects),aP|oint) th|
|00004370| 65 6e 20 72 65 74 75 72 | 6e 20 6f 62 6a 0d 20 20 |en retur|n obj. |
|00004380| 65 6e 64 20 72 65 70 65 | 61 74 0d 20 20 72 65 74 |end repe|at. ret|
|00004390| 75 72 6e 20 65 6d 70 74 | 79 0d 65 6e 64 20 67 65 |urn empt|y.end ge|
|000043a0| 74 52 65 73 74 61 75 72 | 61 6e 74 4f 62 6a 41 74 |tRestaur|antObjAt|
|000043b0| 0d 0d 0d 0d 6f 6e 20 70 | 72 65 70 61 72 65 52 65 |....on p|repareRe|
|000043c0| 73 74 61 75 72 61 6e 74 | 4d 61 73 6b 20 6f 62 6a |staurant|Mask obj|
|000043d0| 0d 20 20 67 6c 6f 62 61 | 6c 20 74 68 65 4d 61 73 |. globa|l theMas|
|000043e0| 6b 50 75 70 70 65 74 0d | 20 20 67 6c 6f 62 61 6c |kPuppet.| global|
|000043f0| 20 67 52 65 73 74 61 75 | 72 61 6e 74 4d 6f 6e 65 | gRestau|rantMone|
|00004400| 79 4d 61 73 6b 0d 20 20 | 0d 20 20 50 75 70 70 65 |yMask. |. Puppe|
|00004410| 74 53 70 72 69 74 65 20 | 74 68 65 4d 61 73 6b 50 |tSprite |theMaskP|
|00004420| 75 70 70 65 74 2c 74 72 | 75 65 0d 20 20 70 75 74 |uppet,tr|ue. put|
|00004430| 20 67 65 74 50 72 6f 70 | 28 6f 62 6a 2c 23 6d 61 | getProp|(obj,#ma|
|00004440| 73 6b 29 20 69 6e 74 6f | 20 6d 61 73 6b 4e 75 6d |sk) into| maskNum|
|00004450| 0d 20 20 70 75 74 20 67 | 65 74 50 72 6f 70 28 6f |. put g|etProp(o|
|00004460| 62 6a 2c 23 62 6f 78 29 | 20 69 6e 74 6f 20 73 70 |bj,#box)| into sp|
|00004470| 72 69 74 65 52 65 63 74 | 0d 20 20 73 65 74 20 74 |riteRect|. set t|
|00004480| 68 65 20 63 61 73 74 4e | 75 6d 20 6f 66 20 73 70 |he castN|um of sp|
|00004490| 72 69 74 65 20 74 68 65 | 4d 61 73 6b 50 75 70 70 |rite the|MaskPupp|
|000044a0| 65 74 20 74 6f 20 6d 61 | 73 6b 4e 75 6d 0d 20 20 |et to ma|skNum. |
|000044b0| 53 70 72 69 74 65 42 6f | 78 20 74 68 65 4d 61 73 |SpriteBo|x theMas|
|000044c0| 6b 50 75 70 70 65 74 2c | 20 74 68 65 20 6c 65 66 |kPuppet,| the lef|
|000044d0| 74 20 6f 66 20 73 70 72 | 69 74 65 52 65 63 74 2c |t of spr|iteRect,|
|000044e0| 20 20 74 68 65 20 74 6f | 70 20 6f 66 20 73 70 72 | the to|p of spr|
|000044f0| 69 74 65 52 65 63 74 2c | 20 c2 0d 20 20 20 20 20 |iteRect,| .. |
|00004500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004510| 20 20 20 20 20 20 74 68 | 65 20 72 69 67 68 74 20 | th|e right |
|00004520| 6f 66 20 73 70 72 69 74 | 65 52 65 63 74 2c 20 74 |of sprit|eRect, t|
|00004530| 68 65 20 62 6f 74 74 6f | 6d 20 6f 66 20 73 70 72 |he botto|m of spr|
|00004540| 69 74 65 52 65 63 74 0d | 20 20 73 65 74 20 74 68 |iteRect.| set th|
|00004550| 65 20 76 69 73 69 62 69 | 6c 69 74 79 20 6f 66 20 |e visibi|lity of |
|00004560| 73 70 72 69 74 65 20 74 | 68 65 4d 61 73 6b 50 75 |sprite t|heMaskPu|
|00004570| 70 70 65 74 20 74 6f 20 | 74 72 75 65 0d 20 20 69 |ppet to |true. i|
|00004580| 66 20 28 6d 61 73 6b 4e | 75 6d 20 3d 20 67 52 65 |f (maskN|um = gRe|
|00004590| 73 74 61 75 72 61 6e 74 | 4d 6f 6e 65 79 4d 61 73 |staurant|MoneyMas|
|000045a0| 6b 29 20 74 68 65 6e 20 | 2d 2d 20 73 70 65 63 69 |k) then |-- speci|
|000045b0| 61 6c 20 63 61 73 65 20 | 66 6f 72 20 6d 6f 6e 65 |al case |for mone|
|000045c0| 79 0d 20 20 20 20 73 65 | 74 20 74 68 65 20 69 6e |y. se|t the in|
|000045d0| 6b 20 6f 66 20 73 70 72 | 69 74 65 20 74 68 65 4d |k of spr|ite theM|
|000045e0| 61 73 6b 50 75 70 70 65 | 74 20 74 6f 20 38 0d 20 |askPuppe|t to 8. |
|000045f0| 20 65 6c 73 65 0d 20 20 | 20 20 73 65 74 20 74 68 | else. | set th|
|00004600| 65 20 69 6e 6b 20 6f 66 | 20 73 70 72 69 74 65 20 |e ink of| sprite |
|00004610| 74 68 65 4d 61 73 6b 50 | 75 70 70 65 74 20 74 6f |theMaskP|uppet to|
|00004620| 20 33 39 0d 20 20 65 6e | 64 20 69 66 0d 65 6e 64 | 39. en|d if.end|
|00004630| 20 70 72 65 70 61 72 65 | 52 65 73 74 61 75 72 61 | prepare|Restaura|
|00004640| 6e 74 4d 61 73 6b 0d 0d | 0d 0d 6f 6e 20 70 72 65 |ntMask..|..on pre|
|00004650| 70 61 72 65 52 65 73 74 | 61 75 72 61 6e 74 54 65 |pareRest|aurantTe|
|00004660| 78 74 20 6f 62 6a 0d 20 | 20 67 6c 6f 62 61 6c 20 |xt obj. | global |
|00004670| 74 68 65 54 65 78 74 50 | 75 70 70 65 74 0d 20 20 |theTextP|uppet. |
|00004680| 50 75 70 70 65 74 53 70 | 72 69 74 65 20 74 68 65 |PuppetSp|rite the|
|00004690| 54 65 78 74 50 75 70 70 | 65 74 2c 74 72 75 65 0d |TextPupp|et,true.|
|000046a0| 20 20 70 75 74 20 67 65 | 74 41 50 72 6f 70 28 6f | put ge|tAProp(o|
|000046b0| 62 6a 2c 23 74 65 78 74 | 29 20 69 6e 74 6f 20 74 |bj,#text|) into t|
|000046c0| 65 78 74 4e 75 6d 0d 20 | 20 73 65 74 20 74 68 65 |extNum. | set the|
|000046d0| 20 63 61 73 74 4e 75 6d | 20 6f 66 20 73 70 72 69 | castNum| of spri|
|000046e0| 74 65 20 74 68 65 54 65 | 78 74 50 75 70 70 65 74 |te theTe|xtPuppet|
|000046f0| 20 74 6f 20 74 65 78 74 | 4e 75 6d 0d 20 20 0d 20 | to text|Num. . |
|00004700| 20 2d 2d 20 a5 a5 a5 20 | 42 41 45 20 31 30 2f 35 | -- ... |BAE 10/5|
|00004710| 2f 39 34 20 2d 20 55 73 | 65 20 22 74 68 65 20 63 |/94 - Us|e "the c|
|00004720| 6c 69 63 6b 4c 6f 63 22 | 20 69 6e 73 74 65 61 64 |lickLoc"| instead|
|00004730| 2c 20 69 74 20 73 68 6f | 77 73 20 77 68 65 72 65 |, it sho|ws where|
|00004740| 0d 20 20 2d 2d 20 74 68 | 65 20 6d 6f 75 73 65 20 |. -- th|e mouse |
|00004750| 77 61 73 20 77 68 65 6e | 20 69 74 20 77 61 73 20 |was when| it was |
|00004760| 63 6c 69 63 6b 65 64 2c | 20 6e 6f 74 20 77 68 65 |clicked,| not whe|
|00004770| 6e 20 77 65 20 67 65 74 | 20 61 72 6f 75 6e 64 20 |n we get| around |
|00004780| 74 6f 20 72 65 61 64 69 | 6e 67 20 70 6f 73 69 74 |to readi|ng posit|
|00004790| 69 6f 6e 0d 20 20 2d 2d | 20 70 75 74 20 74 68 65 |ion. --| put the|
|000047a0| 20 6d 6f 75 73 65 48 20 | 69 6e 74 6f 20 6c 6f 63 | mouseH |into loc|
|000047b0| 58 0d 20 20 2d 2d 20 70 | 75 74 20 74 68 65 20 6d |X. -- p|ut the m|
|000047c0| 6f 75 73 65 56 20 2d 20 | 32 30 20 69 6e 74 6f 20 |ouseV - |20 into |
|000047d0| 6c 6f 63 59 0d 20 20 70 | 75 74 20 20 67 65 74 41 |locY. p|ut getA|
|000047e0| 74 20 28 74 68 65 20 63 | 6c 69 63 6b 4c 6f 63 2c |t (the c|lickLoc,|
|000047f0| 20 31 29 20 69 6e 74 6f | 20 6c 6f 63 58 0d 20 20 | 1) into| locX. |
|00004800| 70 75 74 20 28 67 65 74 | 41 74 20 28 74 68 65 20 |put (get|At (the |
|00004810| 63 6c 69 63 6b 4c 6f 63 | 2c 20 32 29 20 2d 20 32 |clickLoc|, 2) - 2|
|00004820| 30 29 20 69 6e 74 6f 20 | 6c 6f 63 59 0d 20 20 0d |0) into |locY. .|
|00004830| 20 20 0d 20 20 73 65 74 | 20 74 68 65 20 6c 6f 63 | . set| the loc|
|00004840| 48 20 6f 66 20 73 70 72 | 69 74 65 20 74 68 65 54 |H of spr|ite theT|
|00004850| 65 78 74 50 75 70 70 65 | 74 20 74 6f 20 6c 6f 63 |extPuppe|t to loc|
|00004860| 58 0d 20 20 73 65 74 20 | 74 68 65 20 6c 6f 63 56 |X. set |the locV|
|00004870| 20 6f 66 20 73 70 72 69 | 74 65 20 74 68 65 54 65 | of spri|te theTe|
|00004880| 78 74 50 75 70 70 65 74 | 20 74 6f 20 6c 6f 63 59 |xtPuppet| to locY|
|00004890| 0d 20 20 0d 20 20 69 66 | 20 6c 6f 63 58 20 3c 20 |. . if| locX < |
|000048a0| 32 30 20 74 68 65 6e 20 | 0d 20 20 20 20 73 65 74 |20 then |. set|
|000048b0| 20 74 68 65 20 6c 6f 63 | 48 20 6f 66 20 73 70 72 | the loc|H of spr|
|000048c0| 69 74 65 20 74 68 65 54 | 65 78 74 50 75 70 70 65 |ite theT|extPuppe|
|000048d0| 74 20 74 6f 20 32 30 0d | 20 20 65 6c 73 65 0d 20 |t to 20.| else. |
|000048e0| 20 20 20 70 75 74 20 6c | 6f 63 58 20 2b 20 74 68 | put l|ocX + th|
|000048f0| 65 20 77 69 64 74 68 20 | 6f 66 20 63 61 73 74 20 |e width |of cast |
|00004900| 74 65 78 74 4e 75 6d 20 | 69 6e 74 6f 20 64 69 66 |textNum |into dif|
|00004910| 66 0d 20 20 20 20 70 75 | 74 20 20 28 74 68 65 20 |f. pu|t (the |
|00004920| 73 74 61 67 65 52 69 67 | 68 74 20 2d 20 74 68 65 |stageRig|ht - the|
|00004930| 20 73 74 61 67 65 4c 65 | 66 74 29 20 2d 20 64 69 | stageLe|ft) - di|
|00004940| 66 66 20 69 6e 74 6f 20 | 64 69 66 66 0d 20 20 20 |ff into |diff. |
|00004950| 20 69 66 20 64 69 66 66 | 20 3c 20 32 30 20 74 68 | if diff| < 20 th|
|00004960| 65 6e 20 73 65 74 20 74 | 68 65 20 6c 6f 63 48 20 |en set t|he locH |
|00004970| 6f 66 20 73 70 72 69 74 | 65 20 74 68 65 54 65 78 |of sprit|e theTex|
|00004980| 74 50 75 70 70 65 74 20 | 74 6f 20 6c 6f 63 58 20 |tPuppet |to locX |
|00004990| 2d 20 28 32 30 20 2d 20 | 64 69 66 66 29 0d 20 20 |- (20 - |diff). |
|000049a0| 65 6e 64 20 69 66 0d 20 | 20 0d 20 20 69 66 20 6c |end if. | . if l|
|000049b0| 6f 63 59 20 3c 20 31 30 | 20 74 68 65 6e 20 0d 20 |ocY < 10| then . |
|000049c0| 20 20 20 73 65 74 20 74 | 68 65 20 6c 6f 63 56 20 | set t|he locV |
|000049d0| 6f 66 20 73 70 72 69 74 | 65 20 74 68 65 54 65 78 |of sprit|e theTex|
|000049e0| 74 50 75 70 70 65 74 20 | 74 6f 20 31 30 0d 20 20 |tPuppet |to 10. |
|000049f0| 65 6c 73 65 0d 20 20 20 | 20 70 75 74 20 6c 6f 63 |else. | put loc|
|00004a00| 59 20 2b 20 74 68 65 20 | 68 65 69 67 68 74 20 6f |Y + the |height o|
|00004a10| 66 20 63 61 73 74 20 74 | 65 78 74 4e 75 6d 20 69 |f cast t|extNum i|
|00004a20| 6e 74 6f 20 64 69 66 66 | 0d 20 20 20 20 70 75 74 |nto diff|. put|
|00004a30| 20 20 28 74 68 65 20 73 | 74 61 67 65 42 6f 74 74 | (the s|tageBott|
|00004a40| 6f 6d 20 2d 20 74 68 65 | 20 73 74 61 67 65 54 6f |om - the| stageTo|
|00004a50| 70 29 20 2d 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 |p) - the| bottom |
|00004a60| 6f 66 20 73 70 72 69 74 | 65 20 74 68 65 54 65 78 |of sprit|e theTex|
|00004a70| 74 50 75 70 70 65 74 20 | 69 6e 74 6f 20 64 69 66 |tPuppet |into dif|
|00004a80| 66 0d 20 20 20 20 69 66 | 20 64 69 66 66 20 3c 20 |f. if| diff < |
|00004a90| 32 30 20 74 68 65 6e 20 | 73 65 74 20 74 68 65 20 |20 then |set the |
|00004aa0| 6c 6f 63 56 20 6f 66 20 | 73 70 72 69 74 65 20 74 |locV of |sprite t|
|00004ab0| 68 65 54 65 78 74 50 75 | 70 70 65 74 20 74 6f 20 |heTextPu|ppet to |
|00004ac0| 6c 6f 63 59 20 2d 20 28 | 32 30 20 2d 20 64 69 66 |locY - (|20 - dif|
|00004ad0| 66 29 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 0d 20 |f). end| if. . |
|00004ae0| 20 73 65 74 20 74 68 65 | 20 76 69 73 69 62 69 6c | set the| visibil|
|00004af0| 69 74 79 20 6f 66 20 73 | 70 72 69 74 65 20 74 68 |ity of s|prite th|
|00004b00| 65 54 65 78 74 50 75 70 | 70 65 74 20 74 6f 20 74 |eTextPup|pet to t|
|00004b10| 72 75 65 0d 65 6e 64 20 | 70 72 65 70 61 72 65 52 |rue.end |prepareR|
|00004b20| 65 73 74 61 75 72 61 6e | 74 54 65 78 74 0d 0d 6f |estauran|tText..o|
|00004b30| 6e 20 62 75 69 6c 64 52 | 65 73 74 61 75 72 61 6e |n buildR|estauran|
|00004b40| 74 50 69 63 74 4c 69 73 | 74 0d 20 20 67 6c 6f 62 |tPictLis|t. glob|
|00004b50| 61 6c 20 67 52 65 73 74 | 61 75 72 61 6e 74 4e 75 |al gRest|aurantNu|
|00004b60| 6d 50 69 63 74 73 2c 20 | 67 52 65 73 74 61 75 72 |mPicts, |gRestaur|
|00004b70| 61 6e 74 50 69 63 74 75 | 72 65 4c 69 73 74 0d 20 |antPictu|reList. |
|00004b80| 20 0d 20 20 73 65 74 20 | 67 52 65 73 74 61 75 72 | . set |gRestaur|
|00004b90| 61 6e 74 50 69 63 74 75 | 72 65 4c 69 73 74 20 3d |antPictu|reList =|
|00004ba0| 20 5b 5d 0d 20 20 72 65 | 70 65 61 74 20 77 69 74 | []. re|peat wit|
|00004bb0| 68 20 78 20 3d 20 31 20 | 74 6f 20 67 52 65 73 74 |h x = 1 |to gRest|
|00004bc0| 61 75 72 61 6e 74 4e 75 | 6d 50 69 63 74 73 0d 20 |aurantNu|mPicts. |
|00004bd0| 20 20 20 61 70 70 65 6e | 64 20 28 67 52 65 73 74 | appen|d (gRest|
|00004be0| 61 75 72 61 6e 74 50 69 | 63 74 75 72 65 4c 69 73 |aurantPi|ctureLis|
|00004bf0| 74 2c 20 78 29 0d 20 20 | 65 6e 64 20 72 65 70 65 |t, x). |end repe|
|00004c00| 61 74 0d 65 6e 64 20 62 | 75 69 6c 64 52 65 73 74 |at.end b|uildRest|
|00004c10| 61 75 72 61 6e 74 50 69 | 63 74 4c 69 73 74 0d 0d |aurantPi|ctList..|
|00004c20| 2d 2d 20 54 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |-- This |routine |
|00004c30| 70 75 6c 6c 65 64 20 66 | 72 6f 6d 20 22 52 46 22 |pulled f|rom "RF"|
|00004c40| 20 64 69 66 66 65 72 73 | 20 73 6c 69 67 68 74 6c | differs| slightl|
|00004c50| 79 20 66 72 6f 6d 20 74 | 68 65 20 6f 6e 65 20 69 |y from t|he one i|
|00004c60| 6e 20 22 52 41 22 0d 6f | 6e 20 64 6f 52 65 73 74 |n "RA".o|n doRest|
|00004c70| 61 75 72 61 6e 74 50 69 | 63 74 20 6f 62 6a 0d 20 |aurantPi|ct obj. |
|00004c80| 20 67 6c 6f 62 61 6c 20 | 74 68 65 50 69 63 74 50 | global |thePictP|
|00004c90| 75 70 70 65 74 2c 20 66 | 69 6c 65 53 65 70 0d 20 |uppet, f|ileSep. |
|00004ca0| 20 67 6c 6f 62 61 6c 20 | 67 52 65 73 74 61 75 72 | global |gRestaur|
|00004cb0| 61 6e 74 4e 75 6d 50 69 | 63 74 73 2c 20 67 52 65 |antNumPi|cts, gRe|
|00004cc0| 73 74 61 75 72 61 6e 74 | 50 69 63 74 75 72 65 4c |staurant|PictureL|
|00004cd0| 69 73 74 0d 20 20 0d 20 | 20 2d 2d 20 47 65 74 20 |ist. . | -- Get |
|00004ce0| 61 20 72 61 6e 64 6f 6d | 20 69 74 65 6d 20 6e 75 |a random| item nu|
|00004cf0| 6d 62 65 72 20 31 20 2d | 2d 3e 20 6e 75 6d 62 65 |mber 1 -|-> numbe|
|00004d00| 72 20 6f 66 20 70 69 63 | 74 73 20 6c 65 66 74 0d |r of pic|ts left.|
|00004d10| 20 20 73 65 74 20 6e 65 | 77 50 69 63 74 4e 75 6d | set ne|wPictNum|
|00004d20| 20 3d 20 72 61 6e 64 6f | 6d 28 63 6f 75 6e 74 28 | = rando|m(count(|
|00004d30| 67 52 65 73 74 61 75 72 | 61 6e 74 50 69 63 74 75 |gRestaur|antPictu|
|00004d40| 72 65 4c 69 73 74 29 29 | 0d 20 20 0d 20 20 2d 2d |reList))|. . --|
|00004d50| 20 47 65 74 20 74 68 65 | 20 61 63 74 75 61 6c 20 | Get the| actual |
|00004d60| 70 69 63 74 75 72 65 20 | 6e 75 6d 62 65 72 20 77 |picture |number w|
|00004d70| 68 69 63 68 20 69 73 20 | 64 69 66 66 65 72 65 6e |hich is |differen|
|00004d80| 74 20 66 72 6f 6d 20 69 | 74 73 20 70 6f 73 69 74 |t from i|ts posit|
|00004d90| 69 6f 6e 2c 20 62 65 63 | 61 75 73 65 0d 20 20 2d |ion, bec|ause. -|
|00004da0| 2d 20 73 6f 6d 65 20 68 | 61 76 65 20 62 65 65 6e |- some h|ave been|
|00004db0| 20 64 65 6c 65 74 65 64 | 20 66 72 6f 6d 20 74 68 | deleted| from th|
|00004dc0| 65 20 6c 69 73 74 20 61 | 6c 72 65 61 64 79 0d 20 |e list a|lready. |
|00004dd0| 20 73 65 74 20 6c 61 73 | 74 52 65 73 74 50 69 63 | set las|tRestPic|
|00004de0| 74 20 3d 20 67 65 74 41 | 74 20 28 67 52 65 73 74 |t = getA|t (gRest|
|00004df0| 61 75 72 61 6e 74 50 69 | 63 74 75 72 65 4c 69 73 |aurantPi|ctureLis|
|00004e00| 74 2c 20 6e 65 77 50 69 | 63 74 4e 75 6d 29 0d 20 |t, newPi|ctNum). |
|00004e10| 20 0d 20 20 2d 2d 20 44 | 65 6c 65 74 65 20 74 68 | . -- D|elete th|
|00004e20| 69 73 20 6f 6e 65 20 66 | 72 6f 6d 20 74 68 65 20 |is one f|rom the |
|00004e30| 6c 69 73 74 2c 20 73 6f | 20 77 65 20 77 6f 6e 27 |list, so| we won'|
|00004e40| 74 20 72 65 70 65 61 74 | 0d 20 20 64 65 6c 65 74 |t repeat|. delet|
|00004e50| 65 41 74 20 28 67 52 65 | 73 74 61 75 72 61 6e 74 |eAt (gRe|staurant|
|00004e60| 50 69 63 74 75 72 65 4c | 69 73 74 2c 20 6e 65 77 |PictureL|ist, new|
|00004e70| 50 69 63 74 4e 75 6d 29 | 0d 20 20 69 66 20 63 6f |PictNum)|. if co|
|00004e80| 75 6e 74 20 28 67 52 65 | 73 74 61 75 72 61 6e 74 |unt (gRe|staurant|
|00004e90| 50 69 63 74 75 72 65 4c | 69 73 74 29 20 3d 20 30 |PictureL|ist) = 0|
|00004ea0| 20 74 68 65 6e 0d 20 20 | 20 20 62 75 69 6c 64 52 | then. | buildR|
|00004eb0| 65 73 74 61 75 72 61 6e | 74 50 69 63 74 4c 69 73 |estauran|tPictLis|
|00004ec0| 74 28 29 0d 20 20 20 20 | 2d 2d 20 49 66 20 74 68 |t(). |-- If th|
|00004ed0| 65 20 6c 61 73 74 20 6f | 6e 65 20 69 6e 20 74 68 |e last o|ne in th|
|00004ee0| 65 20 6c 69 73 74 20 69 | 73 20 70 69 63 6b 65 64 |e list i|s picked|
|00004ef0| 20 66 69 72 73 74 20 6e | 65 78 74 20 74 69 6d 65 | first n|ext time|
|00004f00| 2c 20 77 65 20 77 69 6c | 6c 20 68 61 76 65 20 61 |, we wil|l have a|
|00004f10| 20 72 65 70 65 61 74 2c | 20 73 6f 20 64 65 6c 65 | repeat,| so dele|
|00004f20| 74 65 20 69 74 0d 20 20 | 20 20 64 65 6c 65 74 65 |te it. | delete|
|00004f30| 41 74 20 28 67 52 65 73 | 74 61 75 72 61 6e 74 50 |At (gRes|taurantP|
|00004f40| 69 63 74 75 72 65 4c 69 | 73 74 2c 20 6c 61 73 74 |ictureLi|st, last|
|00004f50| 52 65 73 74 50 69 63 74 | 29 0d 20 20 65 6e 64 20 |RestPict|). end |
|00004f60| 69 66 0d 20 20 0d 20 20 | 73 65 74 20 66 69 72 73 |if. . |set firs|
|00004f70| 74 50 69 63 74 75 72 65 | 20 3d 20 28 74 68 65 20 |tPicture| = (the |
|00004f80| 6e 75 6d 62 65 72 20 6f | 66 20 63 61 73 74 20 22 |number o|f cast "|
|00004f90| 46 69 72 73 74 20 52 65 | 73 74 61 75 72 61 6e 74 |First Re|staurant|
|00004fa0| 20 50 69 63 74 22 29 20 | 2d 20 31 0d 20 20 0d 20 | Pict") |- 1. . |
|00004fb0| 20 73 65 74 20 66 69 72 | 73 74 53 6f 75 6e 64 20 | set fir|stSound |
|00004fc0| 3d 20 28 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |= (the n|umber of|
|00004fd0| 20 63 61 73 74 20 22 46 | 69 72 73 74 20 52 65 73 | cast "F|irst Res|
|00004fe0| 74 61 75 72 61 6e 74 20 | 53 6f 75 6e 64 22 29 20 |taurant |Sound") |
|00004ff0| 2d 20 31 0d 20 20 0d 20 | 20 73 65 74 20 74 68 65 |- 1. . | set the|
|00005000| 20 63 61 73 74 4e 75 6d | 20 6f 66 20 73 70 72 69 | castNum| of spri|
|00005010| 74 65 20 74 68 65 50 69 | 63 74 50 75 70 70 65 74 |te thePi|ctPuppet|
|00005020| 20 3d 20 66 69 72 73 74 | 50 69 63 74 75 72 65 20 | = first|Picture |
|00005030| 2b 20 6c 61 73 74 52 65 | 73 74 50 69 63 74 0d 20 |+ lastRe|stPict. |
|00005040| 20 0d 20 20 0d 20 20 70 | 75 70 70 65 74 54 72 61 | . . p|uppetTra|
|00005050| 6e 73 69 74 69 6f 6e 20 | 35 30 2c 20 30 2c 20 38 |nsition |50, 0, 8|
|00005060| 2c 20 54 52 55 45 0d 20 | 20 75 70 64 61 74 65 53 |, TRUE. | updateS|
|00005070| 74 61 67 65 0d 20 20 0d | 20 20 70 75 74 20 67 65 |tage. .| put ge|
|00005080| 74 50 72 6f 70 28 6f 62 | 6a 2c 23 73 6f 75 6e 64 |tProp(ob|j,#sound|
|00005090| 29 20 69 6e 74 6f 20 73 | 6e 64 4e 61 6d 65 0d 20 |) into s|ndName. |
|000050a0| 20 0d 20 20 72 65 70 65 | 61 74 20 77 68 69 6c 65 | . repe|at while|
|000050b0| 20 74 68 65 20 73 74 69 | 6c 6c 44 6f 77 6e 20 6f | the sti|llDown o|
|000050c0| 72 20 74 68 65 20 6d 6f | 75 73 65 44 6f 77 6e 0d |r the mo|useDown.|
|000050d0| 20 20 20 20 6e 6f 74 68 | 69 6e 67 0d 20 20 65 6e | noth|ing. en|
|000050e0| 64 20 72 65 70 65 61 74 | 0d 20 20 0d 20 20 69 66 |d repeat|. . if|
|000050f0| 20 73 6e 64 4e 61 6d 65 | 20 3c 3e 20 30 20 74 68 | sndName| <> 0 th|
|00005100| 65 6e 0d 20 20 20 20 2d | 2d 50 75 70 70 65 74 53 |en. -|-PuppetS|
|00005110| 6f 75 6e 64 20 73 6e 64 | 4e 61 6d 65 20 2f 2a 20 |ound snd|Name /* |
|00005120| 77 68 65 6e 20 77 65 20 | 6c 69 6e 6b 20 69 6e 20 |when we |link in |
|00005130| 74 68 65 20 73 6f 75 6e | 64 20 2a 2f 0d 20 20 20 |the soun|d */. |
|00005140| 20 73 65 74 20 6e 65 77 | 53 6e 64 4e 75 6d 20 3d | set new|SndNum =|
|00005150| 20 20 66 69 72 73 74 53 | 6f 75 6e 64 20 2b 20 6c | firstS|ound + l|
|00005160| 61 73 74 52 65 73 74 50 | 69 63 74 0d 20 20 20 20 |astRestP|ict. |
|00005170| 73 6f 75 6e 64 20 70 6c | 61 79 66 69 6c 65 20 31 |sound pl|ayfile 1|
|00005180| 2c 22 40 22 20 26 20 66 | 69 6c 65 53 65 70 20 26 |,"@" & f|ileSep &|
|00005190| 20 22 61 75 64 69 6f 22 | 20 26 20 66 69 6c 65 53 | "audio"| & fileS|
|000051a0| 65 70 20 20 26 20 28 66 | 69 65 6c 64 20 6e 65 77 |ep & (f|ield new|
|000051b0| 53 6e 64 4e 75 6d 29 0d | 20 20 20 20 0d 20 20 20 |SndNum).| . |
|000051c0| 20 2d 2d 20 45 6e 73 75 | 72 65 20 74 68 65 72 65 | -- Ensu|re there|
|000051d0| 20 69 73 20 73 6f 6d 65 | 20 64 61 74 20 69 6e 20 | is some| dat in |
|000051e0| 74 68 65 20 73 74 72 65 | 61 6d 20 62 79 20 64 65 |the stre|am by de|
|000051f0| 6c 61 79 69 6e 67 0d 20 | 20 20 20 77 61 69 74 20 |laying. | wait |
|00005200| 28 33 30 29 0d 20 20 20 | 20 72 65 70 65 61 74 20 |(30). | repeat |
|00005210| 77 68 69 6c 65 20 73 6f | 75 6e 64 62 75 73 79 28 |while so|undbusy(|
|00005220| 31 29 0d 20 20 20 20 20 | 20 69 66 20 74 68 65 20 |1). | if the |
|00005230| 6d 6f 75 73 65 44 6f 77 | 6e 20 74 68 65 6e 20 52 |mouseDow|n then R|
|00005240| 65 73 74 61 75 72 61 6e | 74 53 6b 69 70 41 68 65 |estauran|tSkipAhe|
|00005250| 61 64 28 29 0d 20 20 20 | 20 65 6e 64 20 72 65 70 |ad(). | end rep|
|00005260| 65 61 74 0d 20 20 20 20 | 0d 20 20 20 20 72 65 73 |eat. |. res|
|00005270| 65 74 41 6e 69 6d 61 74 | 69 6f 6e 43 75 72 73 6f |etAnimat|ionCurso|
|00005280| 72 28 29 0d 20 20 65 6e | 64 20 69 66 0d 20 20 0d |r(). en|d if. .|
|00005290| 20 20 70 75 70 70 65 74 | 54 72 61 6e 73 69 74 69 | puppet|Transiti|
|000052a0| 6f 6e 20 30 0d 65 6e 64 | 20 64 6f 52 65 73 74 61 |on 0.end| doResta|
|000052b0| 75 72 61 6e 74 50 69 63 | 74 0d 0d 6f 6e 20 77 61 |urantPic|t..on wa|
|000052c0| 69 74 20 6e 75 6d 54 69 | 63 6b 73 0d 20 20 73 65 |it numTi|cks. se|
|000052d0| 74 20 73 74 61 72 74 54 | 69 63 6b 73 20 3d 20 74 |t startT|icks = t|
|000052e0| 68 65 20 74 69 6d 65 72 | 0d 20 20 0d 20 20 72 65 |he timer|. . re|
|000052f0| 70 65 61 74 20 77 68 69 | 6c 65 20 74 68 65 20 74 |peat whi|le the t|
|00005300| 69 6d 65 72 20 3c 20 73 | 74 61 72 74 54 69 63 6b |imer < s|tartTick|
|00005310| 73 20 2b 20 6e 75 6d 54 | 69 63 6b 73 0d 20 20 20 |s + numT|icks. |
|00005320| 20 0d 20 20 65 6e 64 20 | 72 65 70 65 61 74 0d 20 | . end |repeat. |
|00005330| 20 0d 65 6e 64 20 77 61 | 69 74 0d 0d 0d 2d 2d 20 | .end wa|it...-- |
|00005340| 43 61 6c 6c 20 74 68 69 | 73 20 73 63 72 69 70 74 |Call thi|s script|
|00005350| 20 66 72 6f 6d 20 72 65 | 73 74 61 75 72 61 6e 74 | from re|staurant|
|00005360| 20 6d 6f 76 69 65 73 20 | 77 68 65 6e 20 6d 6f 75 | movies |when mou|
|00005370| 73 65 20 69 73 20 63 6c | 69 63 6b 65 64 0d 6f 6e |se is cl|icked.on|
|00005380| 20 52 65 73 74 61 75 72 | 61 6e 74 4d 6f 75 73 65 | Restaur|antMouse|
|00005390| 44 6f 77 6e 20 69 74 65 | 6d 4e 75 6d 0d 20 20 0d |Down ite|mNum. .|
|000053a0| 20 20 70 75 70 70 65 74 | 53 6f 75 6e 64 20 30 0d | puppet|Sound 0.|
|000053b0| 20 20 73 6f 75 6e 64 20 | 73 74 6f 70 20 31 0d 20 | sound |stop 1. |
|000053c0| 20 73 6f 75 6e 64 20 73 | 74 6f 70 20 32 0d 20 20 | sound s|top 2. |
|000053d0| 0d 20 20 0d 20 20 2d 2d | 20 a5 a5 a5 20 42 41 45 |. . --| ... BAE|
|000053e0| 20 31 30 2f 35 2f 39 34 | 20 2d 20 55 73 65 20 22 | 10/5/94| - Use "|
|000053f0| 74 68 65 20 63 6c 69 63 | 6b 4c 6f 63 22 20 69 6e |the clic|kLoc" in|
|00005400| 73 74 65 61 64 2c 20 69 | 74 20 73 68 6f 77 73 20 |stead, i|t shows |
|00005410| 77 68 65 72 65 0d 20 20 | 2d 2d 20 74 68 65 20 6d |where. |-- the m|
|00005420| 6f 75 73 65 20 77 61 73 | 20 77 68 65 6e 20 69 74 |ouse was| when it|
|00005430| 20 77 61 73 20 63 6c 69 | 63 6b 65 64 2c 20 6e 6f | was cli|cked, no|
|00005440| 74 20 77 68 65 6e 20 77 | 65 20 67 65 74 20 61 72 |t when w|e get ar|
|00005450| 6f 75 6e 64 20 74 6f 20 | 72 65 61 64 69 6e 67 20 |ound to |reading |
|00005460| 70 6f 73 69 74 69 6f 6e | 0d 20 20 2d 2d 20 70 75 |position|. -- pu|
|00005470| 74 20 50 6f 69 6e 74 28 | 74 68 65 20 4d 6f 75 73 |t Point(|the Mous|
|00005480| 65 48 2c 74 68 65 20 4d | 6f 75 73 65 56 29 20 69 |eH,the M|ouseV) i|
|00005490| 6e 74 6f 20 6d 6f 75 73 | 65 4c 6f 63 0d 20 20 69 |nto mous|eLoc. i|
|000054a0| 66 20 6e 6f 74 20 76 6f | 69 64 50 28 69 74 65 6d |f not vo|idP(item|
|000054b0| 4e 75 6d 29 20 74 68 65 | 6e 0d 20 20 20 20 67 6c |Num) the|n. gl|
|000054c0| 6f 62 61 6c 20 6f 62 6a | 73 0d 20 20 20 20 0d 20 |obal obj|s. . |
|000054d0| 20 20 20 73 65 74 20 6f | 62 6a 20 3d 20 67 65 74 | set o|bj = get|
|000054e0| 41 74 20 28 6f 62 6a 73 | 2c 20 69 74 65 6d 4e 75 |At (objs|, itemNu|
|000054f0| 6d 29 0d 20 20 65 6c 73 | 65 0d 20 20 20 20 69 66 |m). els|e. if|
|00005500| 20 74 68 65 20 43 6c 69 | 63 6b 4f 6e 20 3e 20 34 | the Cli|ckOn > 4|
|00005510| 30 20 74 68 65 6e 20 70 | 61 73 73 0d 20 20 20 20 |0 then p|ass. |
|00005520| 70 75 74 20 74 68 65 20 | 63 6c 69 63 6b 4c 6f 63 |put the |clickLoc|
|00005530| 20 69 6e 74 6f 20 6d 6f | 75 73 65 4c 6f 63 0d 20 | into mo|useLoc. |
|00005540| 20 20 20 70 75 74 20 67 | 65 74 52 65 73 74 61 75 | put g|etRestau|
|00005550| 72 61 6e 74 4f 62 6a 41 | 74 28 6d 6f 75 73 65 4c |rantObjA|t(mouseL|
|00005560| 6f 63 29 20 69 6e 74 6f | 20 6f 62 6a 0d 20 20 65 |oc) into| obj. e|
|00005570| 6e 64 20 69 66 0d 20 20 | 0d 20 20 2d 2d 20 4e 4f |nd if. |. -- NO|
|00005580| 54 45 3a 20 49 42 4d 20 | 50 43 20 65 72 72 6f 6e |TE: IBM |PC erron|
|00005590| 65 6f 75 73 6c 79 20 64 | 6f 65 73 20 6e 6f 74 20 |eously d|oes not |
|000055a0| 65 76 61 6c 75 61 74 65 | 20 28 6f 62 6a 20 3c 3e |evaluate| (obj <>|
|000055b0| 20 65 6d 70 74 79 29 20 | 63 6f 72 72 65 63 74 6c | empty) |correctl|
|000055c0| 79 0d 20 20 2d 2d 20 57 | 68 65 6e 20 74 68 65 20 |y. -- W|hen the |
|000055d0| 69 74 65 6d 73 20 69 6e | 20 74 68 65 20 6f 62 6a |items in| the obj|
|000055e0| 20 6c 69 73 74 20 62 65 | 67 69 6e 20 77 69 74 68 | list be|gin with|
|000055f0| 20 22 30 22 2c 20 61 73 | 20 64 6f 65 73 20 74 68 | "0", as| does th|
|00005600| 65 20 70 69 63 74 75 72 | 65 20 68 6f 74 20 61 72 |e pictur|e hot ar|
|00005610| 65 61 0d 20 20 69 66 20 | 4e 4f 54 20 28 6f 62 6a |ea. if |NOT (obj|
|00005620| 20 3d 20 65 6d 70 74 79 | 29 20 74 68 65 6e 20 64 | = empty|) then d|
|00005630| 6f 52 65 73 74 61 75 72 | 61 6e 74 4d 6f 75 73 65 |oRestaur|antMouse|
|00005640| 28 6f 62 6a 29 0d 20 20 | 0d 65 6e 64 20 52 65 73 |(obj). |.end Res|
|00005650| 74 61 75 72 61 6e 74 4d | 6f 75 73 65 44 6f 77 6e |taurantM|ouseDown|
|00005660| 0d 0d 0d 0d 6f 6e 20 52 | 65 73 74 61 75 72 61 6e |....on R|estauran|
|00005670| 74 44 6f 4e 6f 57 6f 72 | 64 73 20 6f 62 6a 0d 20 |tDoNoWor|ds obj. |
|00005680| 20 70 75 74 20 67 65 74 | 50 72 6f 70 28 6f 62 6a | put get|Prop(obj|
|00005690| 2c 23 73 6f 75 6e 64 29 | 20 69 6e 74 6f 20 73 6e |,#sound)| into sn|
|000056a0| 64 0d 20 20 0d 20 20 69 | 66 20 73 6e 64 20 3d 20 |d. . i|f snd = |
|000056b0| 22 70 69 63 74 75 72 65 | 22 20 74 68 65 6e 0d 20 |"picture|" then. |
|000056c0| 20 20 20 64 6f 52 65 73 | 74 61 75 72 61 6e 74 50 | doRes|taurantP|
|000056d0| 69 63 74 20 28 6f 62 6a | 29 0d 20 20 65 6c 73 65 |ict (obj|). else|
|000056e0| 0d 20 20 20 20 2d 2d 20 | 55 73 65 64 20 74 6f 20 |. -- |Used to |
|000056f0| 67 6f 20 68 61 6e 64 6c | 65 20 47 75 73 20 73 70 |go handl|e Gus sp|
|00005700| 65 61 6b 20 28 6e 6f 20 | 77 6f 72 64 73 20 74 6f |eak (no |words to|
|00005710| 20 68 69 6c 69 67 68 74 | 29 0d 20 20 20 20 73 65 | hilight|). se|
|00005720| 74 41 6e 69 6d 61 74 69 | 6f 6e 43 75 72 73 6f 72 |tAnimati|onCursor|
|00005730| 28 29 0d 20 20 20 20 67 | 6f 20 74 6f 20 73 6e 64 |(). g|o to snd|
|00005740| 0d 20 20 65 6e 64 20 69 | 66 0d 65 6e 64 20 52 65 |. end i|f.end Re|
|00005750| 73 74 61 75 72 61 6e 74 | 44 6f 4e 6f 57 6f 72 64 |staurant|DoNoWord|
|00005760| 73 0d 0d 0d 0d 6f 6e 20 | 64 6f 52 65 73 74 61 75 |s....on |doRestau|
|00005770| 72 61 6e 74 4d 6f 75 73 | 65 20 6f 62 6a 0d 20 20 |rantMous|e obj. |
|00005780| 67 6c 6f 62 61 6c 20 66 | 69 72 73 74 54 69 6d 65 |global f|irstTime|
|00005790| 0d 20 20 2d 2d 70 75 74 | 20 22 64 6f 52 65 73 74 |. --put| "doRest|
|000057a0| 61 75 72 61 6e 74 4d 6f | 75 73 65 22 0d 20 20 67 |aurantMo|use". g|
|000057b0| 6c 6f 62 61 6c 20 74 68 | 65 4d 61 73 6b 50 75 70 |lobal th|eMaskPup|
|000057c0| 70 65 74 2c 74 68 65 54 | 65 78 74 50 75 70 70 65 |pet,theT|extPuppe|
|000057d0| 74 0d 20 20 0d 20 20 70 | 75 74 20 67 65 74 41 50 |t. . p|ut getAP|
|000057e0| 72 6f 70 28 6f 62 6a 2c | 23 74 65 78 74 29 20 69 |rop(obj,|#text) i|
|000057f0| 6e 74 6f 20 74 65 78 74 | 4e 75 6d 0d 20 20 69 66 |nto text|Num. if|
|00005800| 20 6e 6f 74 20 74 65 78 | 74 4e 75 6d 20 74 68 65 | not tex|tNum the|
|00005810| 6e 20 72 65 74 75 72 6e | 20 52 65 73 74 61 75 72 |n return| Restaur|
|00005820| 61 6e 74 44 6f 4e 6f 57 | 6f 72 64 73 28 6f 62 6a |antDoNoW|ords(obj|
|00005830| 29 0d 20 20 70 75 74 20 | 67 65 74 50 72 6f 70 28 |). put |getProp(|
|00005840| 6f 62 6a 2c 23 72 65 63 | 74 73 29 20 69 6e 74 6f |obj,#rec|ts) into|
|00005850| 20 72 65 63 74 4c 69 73 | 74 0d 20 20 0d 20 20 70 | rectLis|t. . p|
|00005860| 72 65 70 61 72 65 52 65 | 73 74 61 75 72 61 6e 74 |repareRe|staurant|
|00005870| 4d 61 73 6b 20 28 6f 62 | 6a 29 0d 20 20 70 72 65 |Mask (ob|j). pre|
|00005880| 70 61 72 65 52 65 73 74 | 61 75 72 61 6e 74 54 65 |pareRest|aurantTe|
|00005890| 78 74 20 28 6f 62 6a 29 | 0d 20 20 75 70 64 61 74 |xt (obj)|. updat|
|000058a0| 65 53 74 61 67 65 0d 20 | 20 0d 20 20 70 75 74 20 |eStage. | . put |
|000058b0| 74 72 75 65 20 69 6e 74 | 6f 20 69 73 49 6e 0d 20 |true int|o isIn. |
|000058c0| 20 0d 20 20 0d 20 20 72 | 65 70 65 61 74 20 77 68 | . . r|epeat wh|
|000058d0| 69 6c 65 20 74 68 65 20 | 73 74 69 6c 6c 44 6f 77 |ile the |stillDow|
|000058e0| 6e 0d 20 20 20 20 70 75 | 74 20 52 65 73 74 61 75 |n. pu|t Restau|
|000058f0| 72 61 6e 74 49 73 49 6e | 73 69 64 65 28 72 65 63 |rantIsIn|side(rec|
|00005900| 74 4c 69 73 74 2c 50 6f | 69 6e 74 28 74 68 65 20 |tList,Po|int(the |
|00005910| 4d 6f 75 73 65 48 2c 20 | 74 68 65 20 4d 6f 75 73 |MouseH, |the Mous|
|00005920| 65 56 29 29 20 69 6e 74 | 6f 20 6e 65 77 49 73 49 |eV)) int|o newIsI|
|00005930| 6e 0d 20 20 20 20 69 66 | 20 28 69 73 49 6e 20 3c |n. if| (isIn <|
|00005940| 3e 20 6e 65 77 49 73 49 | 6e 29 20 74 68 65 6e 0d |> newIsI|n) then.|
|00005950| 20 20 20 20 20 20 73 65 | 74 20 74 68 65 20 76 69 | se|t the vi|
|00005960| 73 69 62 69 6c 69 74 79 | 20 6f 66 20 73 70 72 69 |sibility| of spri|
|00005970| 74 65 20 74 68 65 4d 61 | 73 6b 50 75 70 70 65 74 |te theMa|skPuppet|
|00005980| 20 74 6f 20 6e 65 77 49 | 73 49 6e 0d 20 20 20 20 | to newI|sIn. |
|00005990| 20 20 73 65 74 20 74 68 | 65 20 76 69 73 69 62 69 | set th|e visibi|
|000059a0| 6c 69 74 79 20 6f 66 20 | 73 70 72 69 74 65 20 74 |lity of |sprite t|
|000059b0| 68 65 54 65 78 74 50 75 | 70 70 65 74 20 74 6f 20 |heTextPu|ppet to |
|000059c0| 6e 65 77 49 73 49 6e 0d | 20 20 20 20 20 20 75 70 |newIsIn.| up|
|000059d0| 64 61 74 65 53 74 61 67 | 65 0d 20 20 20 20 20 20 |dateStag|e. |
|000059e0| 70 75 74 20 6e 65 77 49 | 73 49 6e 20 69 6e 74 6f |put newI|sIn into|
|000059f0| 20 69 73 49 6e 0d 20 20 | 20 20 65 6e 64 20 69 66 | isIn. | end if|
|00005a00| 0d 20 20 65 6e 64 20 72 | 65 70 65 61 74 0d 20 20 |. end r|epeat. |
|00005a10| 0d 20 20 69 66 20 66 69 | 72 73 74 54 69 6d 65 20 |. if fi|rstTime |
|00005a20| 74 68 65 6e 20 73 65 74 | 20 69 73 69 6e 20 3d 20 |then set| isin = |
|00005a30| 54 52 55 45 0d 20 20 0d | 20 20 69 66 20 69 73 49 |TRUE. .| if isI|
|00005a40| 6e 20 74 68 65 6e 20 0d | 20 20 20 20 70 75 74 20 |n then .| put |
|00005a50| 67 65 74 41 50 72 6f 70 | 28 6f 62 6a 2c 23 73 6f |getAProp|(obj,#so|
|00005a60| 75 6e 64 29 20 69 6e 74 | 6f 20 73 6e 64 4e 61 6d |und) int|o sndNam|
|00005a70| 65 0d 20 20 20 20 69 66 | 20 73 6e 64 4e 61 6d 65 |e. if| sndName|
|00005a80| 20 3c 3e 20 30 20 74 68 | 65 6e 0d 20 20 20 20 20 | <> 0 th|en. |
|00005a90| 20 2d 2d 20 63 68 65 63 | 6b 20 66 6f 72 20 43 79 | -- chec|k for Cy|
|00005aa0| 62 65 72 42 75 64 73 20 | 68 65 72 65 20 65 2e 67 |berBuds |here e.g|
|00005ab0| 2e 20 69 66 20 73 68 6f | 77 42 75 64 73 28 6f 62 |. if sho|wBuds(ob|
|00005ac0| 6a 29 20 74 68 65 6e 20 | 67 6f 20 74 6f 20 73 68 |j) then |go to sh|
|00005ad0| 6f 77 41 42 75 64 28 6f | 62 6a 29 0d 20 20 20 20 |owABud(o|bj). |
|00005ae0| 20 20 50 75 70 70 65 74 | 53 6f 75 6e 64 20 73 6e | Puppet|Sound sn|
|00005af0| 64 4e 61 6d 65 0d 20 20 | 20 20 20 20 2d 2d 50 75 |dName. | --Pu|
|00005b00| 70 70 65 74 53 6f 75 6e | 64 20 22 70 68 6f 65 6e |ppetSoun|d "phoen|
|00005b10| 69 78 22 0d 20 20 20 20 | 20 20 2d 2d 70 75 74 20 |ix". | --put |
|00005b20| 73 6e 64 4e 61 6d 65 0d | 20 20 20 20 20 20 75 70 |sndName.| up|
|00005b30| 64 61 74 65 53 74 61 67 | 65 0d 20 20 20 20 20 20 |dateStag|e. |
|00005b40| 72 65 70 65 61 74 20 77 | 68 69 6c 65 20 73 6f 75 |repeat w|hile sou|
|00005b50| 6e 64 62 75 73 79 28 31 | 29 0d 20 20 20 20 20 20 |ndbusy(1|). |
|00005b60| 20 20 6e 6f 74 68 69 6e | 67 0d 20 20 20 20 20 20 | nothin|g. |
|00005b70| 65 6e 64 20 72 65 70 65 | 61 74 0d 20 20 20 20 65 |end repe|at. e|
|00005b80| 6e 64 20 69 66 0d 20 20 | 20 20 0d 20 20 20 20 2d |nd if. | . -|
|00005b90| 2d 20 49 66 20 74 68 65 | 79 20 63 6c 69 63 6b 65 |- If the|y clicke|
|00005ba0| 64 20 6f 6e 20 74 68 65 | 20 66 6c 61 67 2c 20 67 |d on the| flag, g|
|00005bb0| 6f 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 66 6f |o to the| next fo|
|00005bc0| 72 65 69 67 6e 20 72 65 | 73 74 61 75 72 61 6e 74 |reign re|staurant|
|00005bd0| 0d 20 20 20 20 69 66 20 | 20 67 65 74 41 50 72 6f |. if | getAPro|
|00005be0| 70 28 6f 62 6a 2c 23 67 | 6f 74 6f 29 20 3c 3e 20 |p(obj,#g|oto) <> |
|00005bf0| 30 20 74 68 65 6e 0d 20 | 20 20 20 20 20 67 6f 20 |0 then. | go |
|00005c00| 74 6f 20 22 67 6f 6f 64 | 62 79 65 22 0d 20 20 20 |to "good|bye". |
|00005c10| 20 65 6e 64 20 69 66 0d | 20 20 20 20 0d 20 20 20 | end if.| . |
|00005c20| 20 73 65 74 20 74 68 65 | 20 76 69 73 69 62 69 6c | set the| visibil|
|00005c30| 69 74 79 20 6f 66 20 73 | 70 72 69 74 65 20 74 68 |ity of s|prite th|
|00005c40| 65 4d 61 73 6b 50 75 70 | 70 65 74 20 74 6f 20 66 |eMaskPup|pet to f|
|00005c50| 61 6c 73 65 0d 20 20 20 | 20 73 65 74 20 74 68 65 |alse. | set the|
|00005c60| 20 76 69 73 69 62 69 6c | 69 74 79 20 6f 66 20 73 | visibil|ity of s|
|00005c70| 70 72 69 74 65 20 74 68 | 65 54 65 78 74 50 75 70 |prite th|eTextPup|
|00005c80| 70 65 74 20 74 6f 20 66 | 61 6c 73 65 0d 20 20 20 |pet to f|alse. |
|00005c90| 20 0d 20 20 20 20 2d 2d | 20 a5 a5 a5 20 41 64 64 | . --| ... Add|
|00005ca0| 65 64 20 62 75 64 20 68 | 61 6e 64 6c 69 6e 67 20 |ed bud h|andling |
|00005cb0| 42 41 45 20 31 30 2f 35 | 2f 39 34 0d 20 20 20 20 |BAE 10/5|/94. |
|00005cc0| 63 68 65 63 6b 52 65 73 | 74 61 75 72 61 6e 74 42 |checkRes|taurantB|
|00005cd0| 75 64 20 28 6f 62 6a 29 | 0d 20 20 20 20 0d 20 20 |ud (obj)|. . |
|00005ce0| 20 20 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 50 75 | . end| if. Pu|
|00005cf0| 70 70 65 74 53 70 72 69 | 74 65 20 74 68 65 4d 61 |ppetSpri|te theMa|
|00005d00| 73 6b 50 75 70 70 65 74 | 2c 66 61 6c 73 65 0d 20 |skPuppet|,false. |
|00005d10| 20 50 75 70 70 65 74 53 | 70 72 69 74 65 20 74 68 | PuppetS|prite th|
|00005d20| 65 54 65 78 74 50 75 70 | 70 65 74 2c 66 61 6c 73 |eTextPup|pet,fals|
|00005d30| 65 0d 20 20 50 75 70 70 | 65 74 53 6f 75 6e 64 20 |e. Pupp|etSound |
|00005d40| 30 0d 20 20 72 65 73 65 | 74 41 6e 69 6d 61 74 69 |0. rese|tAnimati|
|00005d50| 6f 6e 43 75 72 73 6f 72 | 28 29 0d 65 6e 64 20 64 |onCursor|().end d|
|00005d60| 6f 52 65 73 74 61 75 72 | 61 6e 74 4d 6f 75 73 65 |oRestaur|antMouse|
|00005d70| 0d 0d 0d 2d 2d 20 a5 a5 | a5 ca 43 72 65 61 74 65 |...-- ..|..Create|
|00005d80| 64 20 42 41 45 20 31 30 | 2f 35 2f 39 34 0d 6f 6e |d BAE 10|/5/94.on|
|00005d90| 20 63 68 65 63 6b 52 65 | 73 74 61 75 72 61 6e 74 | checkRe|staurant|
|00005da0| 42 75 64 20 62 75 64 4f | 62 6a 0d 20 20 0d 20 20 |Bud budO|bj. . |
|00005db0| 70 75 74 20 67 65 74 41 | 50 72 6f 70 28 62 75 64 |put getA|Prop(bud|
|00005dc0| 4f 62 6a 2c 23 62 75 64 | 4e 75 6d 29 20 69 6e 74 |Obj,#bud|Num) int|
|00005dd0| 6f 20 62 75 64 4e 75 6d | 62 65 72 0d 20 20 69 66 |o budNum|ber. if|
|00005de0| 20 62 75 64 4e 75 6d 62 | 65 72 20 3c 3e 20 30 20 | budNumb|er <> 0 |
|00005df0| 74 68 65 6e 0d 20 20 20 | 20 69 66 20 63 68 65 63 |then. | if chec|
|00005e00| 6b 42 75 64 20 28 23 72 | 61 2c 20 62 75 64 4e 75 |kBud (#r|a, budNu|
|00005e10| 6d 62 65 72 29 20 74 68 | 65 6e 0d 20 20 20 20 20 |mber) th|en. |
|00005e20| 20 73 65 74 20 62 75 64 | 50 61 74 68 20 3d 20 67 | set bud|Path = g|
|00005e30| 65 74 42 75 64 50 61 74 | 68 28 62 75 64 4e 75 6d |etBudPat|h(budNum|
|00005e40| 62 65 72 29 0d 20 20 20 | 20 20 20 70 6c 61 79 20 |ber). | play |
|00005e50| 62 75 64 50 61 74 68 0d | 20 20 20 20 20 20 63 68 |budPath.| ch|
|00005e60| 65 63 6b 46 6f 72 4c 61 | 73 74 42 75 64 28 29 0d |eckForLa|stBud().|
|00005e70| 20 20 20 20 65 6e 64 20 | 69 66 0d 20 20 65 6e 64 | end |if. end|
|00005e80| 20 69 66 0d 65 6e 64 20 | 63 68 65 63 6b 52 65 73 | if.end |checkRes|
|00005e90| 74 61 75 72 61 6e 74 42 | 75 64 0d 0d 0d 6f 6e 20 |taurantB|ud...on |
|00005ea0| 72 65 74 75 72 6e 46 72 | 6f 6d 44 69 6e 65 72 0d |returnFr|omDiner.|
|00005eb0| 20 20 52 65 74 75 72 6e | 54 6f 35 74 68 41 76 65 | Return|To5thAve|
|00005ec0| 20 28 22 47 75 73 46 72 | 6f 6d 52 61 22 29 0d 65 | ("GusFr|omRa").e|
|00005ed0| 6e 64 20 72 65 74 75 72 | 6e 46 72 6f 6d 44 69 6e |nd retur|nFromDin|
|00005ee0| 65 72 0d 19 52 65 73 74 | 61 75 72 61 6e 74 20 43 |er..Rest|aurant C|
|00005ef0| 6f 6d 6d 6f 6e 20 73 63 | 72 69 70 74 73 00 2a 00 |ommon sc|ripts.*.|
|00005f00| 04 01 01 02 72 00 00 20 | 4e 00 00 20 51 00 fd 3e |....r.. |N.. Q..>|
|00005f10| 90 00 33 00 00 00 00 00 | 0c 00 0a 00 16 00 00 00 |..3.....|........|
|00005f20| 0c 00 00 00 00 00 00 00 | 00 00 2b 00 0b 00 09 00 |........|..+.....|
|00005f30| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 00 2c 00 |........|......,.|
|00005f40| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 43 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |..C.....|........|
|00005f60| 00 00 00 00 00 03 47 00 | 0b 00 09 00 04 01 00 00 |......G.|........|
|00005f70| 09 00 00 00 00 00 00 00 | 00 03 5f 00 0b 00 09 00 |........|.._.....|
|00005f80| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 04 48 00 |........|......H.|
|00005f90| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 04 5e 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |..^.....|........|
|00005fb0| 00 00 00 00 00 04 cb 00 | 0b 00 09 00 04 01 00 00 |........|........|
|00005fc0| 09 00 00 00 00 00 00 00 | 00 04 e2 00 0b 00 09 00 |........|........|
|00005fd0| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 04 e5 00 |........|........|
|00005fe0| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 04 fb 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00006000| 00 00 00 00 00 05 74 00 | 0b 00 09 00 04 01 00 00 |......t.|........|
|00006010| 09 00 00 00 00 00 00 00 | 00 05 8a 00 0b 00 09 00 |........|........|
|00006020| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 05 8e 00 |........|........|
|00006030| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006040| 00 05 a3 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00006050| 00 00 00 00 00 06 38 00 | 0b 00 09 00 04 01 00 00 |......8.|........|
|00006060| 09 00 00 00 00 00 00 00 | 00 06 4e 00 0b 00 09 00 |........|..N.....|
|00006070| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 06 52 00 |........|......R.|
|00006080| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006090| 00 06 6a 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |..j.....|........|
|000060a0| 00 00 00 00 00 08 cb 00 | 0b 00 09 00 04 01 00 00 |........|........|
|000060b0| 09 00 00 00 00 00 00 00 | 00 08 e4 00 0b 00 09 00 |........|........|
|000060c0| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 08 e8 00 |........|........|
|000060d0| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 09 01 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 0d b2 00 | 0b 00 09 00 04 01 00 00 |........|........|
|00006100| 09 00 00 00 00 00 00 00 | 00 0d cb 00 0b 00 09 00 |........|........|
|00006110| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 0d d0 00 |........|........|
|00006120| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006130| 00 0d e7 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00006140| 00 00 00 00 00 0e a5 00 | 0b 00 09 00 04 01 00 00 |........|........|
|00006150| 09 00 00 00 00 00 00 00 | 00 0e bc 00 0b 00 09 00 |........|........|
|00006160| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 0f 05 00 |........|........|
|00006170| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006180| 00 0f 18 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00006190| 00 00 00 00 00 15 43 00 | 0b 00 09 00 04 01 00 00 |......C.|........|
|000061a0| 09 00 00 00 00 00 00 00 | 00 15 57 00 0b 00 09 00 |........|..W.....|
|000061b0| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 16 1c 00 |........|........|
|000061c0| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 16 40 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |..@.....|........|
|000061e0| 00 00 00 00 00 18 e7 00 | 0b 00 09 00 04 01 00 00 |........|........|
|000061f0| 09 00 00 00 00 00 00 00 | 00 18 fe 00 0b 00 09 00 |........|........|
|00006200| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 19 02 00 |........|........|
|00006210| 0b 00 09 00 04 01 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006220| 00 19 18 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00006230| 00 00 00 00 00 1a 02 00 | 0c 00 0a 00 16 00 00 00 |........|........|
|00006240| 0c 00 00 00 00 00 00 00 | 00 1a 03 00 0b 00 09 00 |........|........|
|00006250| 04 01 00 00 09 00 00 00 | 00 00 00 00 00 1a 17 00 |........|........|
|00006260| 0b 00 09 00 04 00 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00006270| 00 1f f9 00 0b 00 09 00 | 04 01 00 00 09 00 00 00 |........|........|
|00006280| 00 00 00 00 00 20 0e 00 | 0b 00 09 00 04 00 00 00 |..... ..|........|
|00006290| 09 00 00 00 00 00 00 00 | 00 20 0f 00 0c 00 0a 00 |........|. ......|
|000062a0| 16 00 00 00 0c 00 00 00 | 00 00 00 00 00 20 10 00 |........|..... ..|
|000062b0| 0b 00 09 00 04 00 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 20 2c 00 0b 00 09 00 | 04 01 00 00 09 00 00 00 |. ,.....|........|
|000062d0| 00 00 00 00 00 20 41 00 | 0b 00 09 00 04 00 00 00 |..... A.|........|
|000062e0| 09 00 00 00 00 00 00 00 | 00 21 22 00 0b 00 09 00 |........|.!".....|
|000062f0| 04 01 00 00 09 00 00 00 | 00 00 00 00 00 21 38 00 |........|.....!8.|
|00006300| 0b 00 09 00 04 00 00 00 | 09 00 00 00 00 00 00 6f |........|.......o|
|00006310| 43 41 53 74 00 00 16 5b | 00 04 00 00 16 51 0b 00 |CASt...[|.....Q..|
|00006320| 00 03 00 00 00 14 01 44 | d1 1c 00 00 00 00 00 00 |.......D|........|
|00006330| 00 00 00 00 00 06 00 07 | 00 00 00 00 00 00 14 b1 |........|........|
|00006340| 00 00 14 c5 00 00 14 c5 | 00 00 14 c5 00 00 14 c5 |........|........|
|00006350| 00 00 14 d9 00 00 16 1b | 6f 6e 20 69 6e 69 74 42 |........|on initB|
|00006360| 75 64 4d 65 74 65 72 43 | 61 73 74 0d 20 20 67 6c |udMeterC|ast. gl|
|00006370| 6f 62 61 6c 20 6d 65 74 | 65 72 4c 65 76 65 6c 0d |obal met|erLevel.|
|00006380| 20 20 67 6c 6f 62 61 6c | 20 6d 6f 64 75 6c 65 4c | global| moduleL|
|00006390| 69 73 74 0d 20 20 67 6c | 6f 62 61 6c 20 66 69 6c |ist. gl|obal fil|
|000063a0| 65 53 65 70 0d 20 20 0d | 20 20 0d 20 20 2d 2d 2d |eSep. .| . ---|
|000063b0| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 63 61 | This ro|utine ca|
|000063c0| 6e 20 62 65 20 63 61 6c | 6c 65 64 20 73 61 66 65 |n be cal|led safe|
|000063d0| 6c 79 20 74 6f 20 69 6e | 69 74 69 61 6c 69 7a 65 |ly to in|itialize|
|000063e0| 20 77 68 61 74 65 76 65 | 72 20 69 73 20 6e 65 63 | whateve|r is nec|
|000063f0| 65 73 73 61 72 79 2c 0d | 20 20 2d 2d 20 77 69 74 |essary,.| -- wit|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.